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 );
open CONT, "zcat $filename|$what"
or die $!;
- while (<CONT>) { last if /^FILE/mo; }
- if (eof(CONT)) { # no header found
+ my $header_found = 0;
+ while (<CONT>) { /^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 (<CONT>) {