summaryrefslogtreecommitdiff
path: root/push-all
diff options
context:
space:
mode:
Diffstat (limited to 'push-all')
-rw-r--r--push-all7
1 files changed, 5 insertions, 2 deletions
diff --git a/push-all b/push-all
index ed825fc3bb..8e9f9f314b 100644
--- a/push-all
+++ b/push-all
@@ -39,9 +39,13 @@ sub pushall {
my $remotepath;
my $path;
my $tag;
+ my @repos;
open IN, "< packages" or die "Can't open packages file";
- while (<IN>) {
+ @repos = <IN>;
+ close IN;
+
+ foreach (@repos) {
chomp;
if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) {
$localpath = $1;
@@ -69,7 +73,6 @@ sub pushall {
die "Bad line: $_";
}
}
- close IN;
}
sub main {