X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=bin%2Fparse-contents;h=1f4f58d9aea8f414201bd6f894fd694d3ddf25d3;hb=423d06ae0e7bc1609a0aa1e8bbc2b4dfe93a62de;hp=82df0b87b74341795df60a232670cd17ded0b9fc;hpb=ad2da3295e7442dd59932ec9f3f45a9650869483;p=deb%2Fpackages.git diff --git a/bin/parse-contents b/bin/parse-contents index 82df0b8..1f4f58d 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 () {