]> git.deb.at Git - deb/packages.git/blobdiff - bin/parse-contents
Merge commit 'origin/master' into ubuntu-master
[deb/packages.git] / bin / parse-contents
index a72bb71aefac3e96a904993764e3065062f4b7c1..ac88420da74c5834f7e4304533248509e355ac68 100755 (executable)
@@ -85,9 +85,11 @@ for my $suite (@suites) {
 
                open CONT, "zcat $filename|$what"
                    or die $!;
-               while (<CONT>) { last if /^FILE/mo; }
-               if (eof(CONT)) { # no header found
+               my $header_found = 0;
+               while (<CONT>) { /^FILE/mo && do { $header_found = 1; last };}
+               if (eof(CONT)) { # no header found or only header found
                    close CONT; # explicit close to reset $.
+                   next if $header_found;
                    open CONT, "zcat $filename|$what";
                }
                while (<CONT>) {
@@ -142,7 +144,7 @@ for my $suite (@suites) {
 
            activate($filelist_db);
            #FIXME: hardcoded archs. (debports has no contrib/non-free)
-           if ($arch ne 'm68k') {
+           if ($arch ne 'avr32' and $arch ne 'm68k') {
                system("ln", "-sf", basename($filelist_db),
                       "$DBDIR/filelists_${suite}_all.db") == 0
                           or die "Oops";