4 die "not yet ported to ds8143" if hostname
eq "ds8143";
24 my @opt = <<'=back' =~ /B<--(\S+)>/g;
34 Quick and dirty: we have plenty of files containing
36 <h1 class="pagetitle">Error</h1>
40 <title>CPAN Testers Reports: Error</title>
46 They all simply get removed together with their headers files.
52 use lib
"$FindBin::Bin/../lib";
58 use File
::Basename
qw(dirname);
59 use File
::Path
qw(mkpath);
63 use Hash
::Util
qw(lock_keys);
66 lock_keys
%Opt, map { /([^=]+)/ } @opt;
76 return unless /^\d+\.gz$/;
77 return if -s
$File::Find
::name
> 3000;
78 open my $fh, "-|", zcat
=> $File::Find
::name
or die "Could not open '$File::Find::name': $!";
81 if (m{<h1 class="pagetitle">Error</h1>}) {
87 unlink $File::Find
::name
or die "Could not unlink '$File::Find::name': $!";
88 my $headers = $File::Find
::name
;
89 $headers =~ s/gz$/headers/;
90 unlink $headers or die "Could not unlink '$headers': $!";
95 "/home/ftp/cpantesters/reports"
101 # cperl-indent-level: 4