From 690690ecdc8d3e39013787ea527a5770d57ac4a6 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 4 Aug 2009 22:10:21 +0000 Subject: 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 --- modulemanager | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modulemanager b/modulemanager index f4fe55502..80a556a1a 100755 --- a/modulemanager +++ b/modulemanager @@ -308,13 +308,13 @@ for my $mod (sort keys %todo) { } else { 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"; -- cgit v1.2.3