X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=bin%2Fparse-contents;h=959b6101b8e8e9478a11dd3222e886ecf1904f62;hb=57846fbfa25f9a6a4878182037d14dc9c1e5ac36;hp=ab7df273fb3a20f16fd4e483712bbbcd82836324;hpb=a27d9febd751f81ad7d48ce64a15ba68f36ff049;p=deb%2Fpackages.git diff --git a/bin/parse-contents b/bin/parse-contents index ab7df27..959b610 100755 --- a/bin/parse-contents +++ b/bin/parse-contents @@ -47,7 +47,7 @@ my @archives = @ARCHIVES; my @suites = @SUITES; my @archs = @ARCHITECTURES; my %deborts_hash; -@deborts_hash{qw( avr32 m68k powerpcspe sh4 sparc64 )} = (); +@deborts_hash{qw( alpha avr32 hppa m68k powerpcspe sh4 sparc64 )} = (); $DBDIR .= "/contents"; mkdirp( $DBDIR ); @@ -87,9 +87,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 () {