]> git.deb.at Git - deb/packages.git/commitdiff
[UBUNTU] Remove bashism in open() call
authorFrank Lichtenheld <frank@lichtenheld.de>
Tue, 10 Jun 2008 21:18:36 +0000 (22:18 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Tue, 10 Jun 2008 21:18:36 +0000 (22:18 +0100)
We delegate globbing to /bin/sh here, so don't assume
that is bash.

bin/parse-packages

index 97edffcd19666bc4a438c7b1bfe1108a4ecfd132..15eae16c5fac1fe92eae311a28ff610f6fc673c0 100755 (executable)
@@ -68,11 +68,12 @@ for my $suite (@SUITES) {
 
     for my $archive (@ARCHIVES) {
        print "Reading $archive/$suite...\n";
-       if (!-d "$TOPDIR/archive/$archive/$suite/") {
+       my $suite_dir = "$TOPDIR/archive/$archive/$suite";
+       if (!-d $suite_dir) {
                 print "\tseems not to exist, skipping...\n";
                 next;
         }
-       open PKG, "zcat $TOPDIR/archive/$archive/$suite/$what/{,debian-installer/}binary-*/Packages.gz|";
+       open PKG, "zcat $suite_dir/$what/binary-*/Packages.gz $suite_dir/$what/debian-installer/binary-*/Packages.gz|";
        while (<PKG>) {
                next if /^\s*$/;
                my $data = "";