mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Write .modulemanager after everything has finished, not in a loop.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11492 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
a8f599ab2d
commit
690690ecdc
@ -308,13 +308,13 @@ for my $mod (sort keys %todo) {
|
|||||||
} else {
|
} else {
|
||||||
print " - HTTP $stat\n";
|
print " - HTTP $stat\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
# write database of installed versions
|
|
||||||
open SRC, '>.modulemanager' or die "can't write installed versions to .modulemanager, won't be able to track upgrades properly: $!";
|
|
||||||
foreach my $key (keys %mod_versions)
|
|
||||||
{
|
|
||||||
print SRC "$key $mod_versions{$key}\n";
|
|
||||||
}
|
|
||||||
close SRC;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# write database of installed versions
|
||||||
|
open SRC, '>.modulemanager' or die "can't write installed versions to .modulemanager, won't be able to track upgrades properly: $!";
|
||||||
|
foreach my $key (keys %mod_versions)
|
||||||
|
{
|
||||||
|
print SRC "$key $mod_versions{$key}\n";
|
||||||
|
}
|
||||||
|
close SRC;
|
||||||
print "Done!\n";
|
print "Done!\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user