X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=bin%2Fparse-contents;h=ac88420da74c5834f7e4304533248509e355ac68;hb=616332d8dd69eb67e61e50cbf531c698af542016;hp=11d076f49f2799a1f17c747abc5e72e4792bf63f;hpb=d2c37ad5a233f2026d3309905f6715ec672be45b;p=deb%2Fpackages.git diff --git a/bin/parse-contents b/bin/parse-contents index 11d076f..ac88420 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 () {