diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-17 17:45:40 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-17 17:45:40 +0000 |
commit | 4d91c60d55e832c47253a586e9c9de219d24e851 (patch) | |
tree | 62c43aaba792b303840c8940ad71b19142277448 | |
parent | 05b111d6a245725c81a314794fb95e8375fb6720 (diff) |
modulemanger: check dependencies correctly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11740 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-x | modulemanager | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/modulemanager b/modulemanager index 37aebac9b..0e978977a 100755 --- a/modulemanager +++ b/modulemanager @@ -185,7 +185,7 @@ sub resolve_deps { my $ver = $todo{$mod}; my $info = $modules{$mod}{$ver} or die "no dependency information on $mod $ver"; for my $dep (@{$info->{depends}}) { - $dep =~ /^(\S+)(?: \S+)?/ or die "Bad dependency $dep from $info->{from}"; + $dep =~ /^(\S+)(?: (\S+))?/ or die "Bad dependency $dep from $info->{from}"; my($depmod, $depvers) = ($1,$2); next if $todo{$depmod} && ver_in_range($todo{$depmod}, $depvers); # need to install a dependency @@ -278,15 +278,11 @@ resolve_deps(0); $| = 1; # immediate print of lines without \n -# whether or not to invoke ./configure -modupdate after processing -my $regen_modules_list = 0; - print "Processing changes for $action...\n"; for my $mod (keys %installed) { next if $todo{$mod}; print "Uninstalling $mod $installed{$mod}\n"; unlink "src/modules/$mod.cpp"; - $regen_modules_list = 1; } my $count = scalar keys %todo; @@ -312,7 +308,6 @@ for my $mod (sort keys %todo) { } else { print " - HTTP $stat\n"; } - $regen_modules_list = 1; } # write database of installed versions @@ -323,10 +318,4 @@ foreach my $key (keys %mod_versions) } close SRC; -# regenerate makefiles if necessary -if ($regen_modules_list) -{ - print "Done... Re-generating makefiles\n"; - system "./configure -modupdate"; -} print "Finished!\n"; |