X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=bin%2Fparse-contents;h=26f715108530bc1e4ea80e123c018bddc6287a37;hb=7484a3adc951c00fd18c530bb88007b5d4632808;hp=a72bb71aefac3e96a904993764e3065062f4b7c1;hpb=df6116203c901f5f4ba071535389bd57eab2ce21;p=deb%2Fpackages.git diff --git a/bin/parse-contents b/bin/parse-contents index a72bb71..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 () {