}
if (!&main::ftpGet($host,$path,$thisfile,$file)) {
- &main::DEBUG("deb: down: ftpGet($host,$path,$thisfile,$file) == BAD.");
+ &main::WARN("deb: down: $file == BAD.");
$bad++;
next;
}
$front = 1;
$grepRE = $query;
} else {
- $grepRE = "$query.*\[ \t]";
+ $grepRE = "$query*\[ \t]";
}
### fix up grepRE for "*".
- $grepRE =~ s/\*/\.\*/g;
+ $grepRE =~ s/\*/.*/g;
my @files;
foreach (keys %urlcontents) {
my $files = join(' ', @files);
- &main::status("search regex => '$grepRE'.");
open(IN,"zegrep -h '$grepRE' $files |");
while (<IN>) {
if (/^\.?\/?(.*?)[\t\s]+(\S+)\n$/) {
$contents{$package}{$file} = 1;
$found++;
}
+
+ last if ($found > 100);
}
close IN;