X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=bin%2Fparse-contents;h=22a72e8b507a5ae9adfd8219da3be4b1cf0e2c88;hp=ab7df273fb3a20f16fd4e483712bbbcd82836324;hb=5db229e24c1403bdb4f49ba1f7d463c8e4a274af;hpb=a27d9febd751f81ad7d48ce64a15ba68f36ff049 diff --git a/bin/parse-contents b/bin/parse-contents index ab7df27..22a72e8 100755 --- a/bin/parse-contents +++ b/bin/parse-contents @@ -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 () {