X-Git-Url: https://git.deb.at/?a=blobdiff_plain;ds=sidebyside;f=bin%2Fparse-contents;h=26f715108530bc1e4ea80e123c018bddc6287a37;hb=7484a3adc951c00fd18c530bb88007b5d4632808;hp=82df0b87b74341795df60a232670cd17ded0b9fc;hpb=4fec9449ddf3d2a6162c05387367746f3e17e329;p=deb%2Fpackages.git diff --git a/bin/parse-contents b/bin/parse-contents index 82df0b8..26f7151 100755 --- a/bin/parse-contents +++ b/bin/parse-contents @@ -85,9 +85,11 @@ for my $suite (@suites) { open CONT, "zcat $filename|$what" or die $!; - while () { last if /^FILE/mo; } - if (eof(CONT)) { # no header found + my $header_found = 0; + while () { /^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 () { @@ -142,7 +144,7 @@ for my $suite (@suites) { activate($filelist_db); #FIXME: hardcoded archs. (debports has no contrib/non-free) - if ($arch !~ m/^kfreebsd-.*$/) { + if ($arch ne 'm68k') { system("ln", "-sf", basename($filelist_db), "$DBDIR/filelists_${suite}_all.db") == 0 or die "Oops";