summaryrefslogtreecommitdiff
path: root/modulemanager
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-04 22:10:21 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-04 22:10:21 +0000
commit690690ecdc8d3e39013787ea527a5770d57ac4a6 (patch)
tree38e69b7a902d377201b535dafeea2d1c96e75654 /modulemanager
parenta8f599ab2d7ed5bbd684fcc651be070af0356855 (diff)
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
Diffstat (limited to 'modulemanager')
-rwxr-xr-xmodulemanager14
1 files 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";