| line |
true |
false |
branch |
|
26
|
0 |
0 |
if exists &Errno::EAGAIN and $! == &Errno::EAGAIN |
|
27
|
0 |
0 |
if ++$cnt > 100000 |
|
38
|
0 |
0 |
if defined $ftpstats_size and $ftpstats_size <= 0 |
|
39
|
0 |
0 |
$fh ? : |
|
43
|
0 |
0 |
if $^O eq "MSWin32" |
|
52
|
0 |
0 |
if ($sleep > 3) |
|
59
|
0 |
0 |
if ($sleep <= 6) { } |
|
67
|
0 |
0 |
if ($@) |
|
68
|
0 |
0 |
if (ref $@) { } |
|
69
|
0 |
0 |
if (ref $@ eq 'CPAN::Exception::yaml_not_installed') { } |
|
|
0 |
0 |
elsif (ref $@ eq 'CPAN::Exception::yaml_process_error') { } |
|
80
|
0 |
0 |
unless rename $file, $to |
|
93
|
6 |
0 |
if ('CPAN'->has_inst('Time::HiRes')) { } |
|
115
|
0 |
3 |
if $CPAN::DEBUG |
|
116
|
0 |
3 |
if ($CPAN::META->has_inst($yaml_module)) |
|
123
|
0 |
0 |
if $sdebug |
|
125
|
0 |
0 |
if $fh and defined fileno $fh |
|
127
|
0 |
0 |
if $sdebug |
|
128
|
0 |
0 |
if $sdebug |
|
133
|
0 |
0 |
unless defined $ftpstats_size |
|
136
|
0 |
0 |
unless $fullstats->{'history'} |
|
145
|
0 |
0 |
if $sdebug |
|
146
|
0 |
0 |
if $sdebug |
|
147
|
0 |
0 |
if $sdebug |
|
151
|
0 |
0 |
if ($sdebug) |
|
160
|
0 |
0 |
if $^O eq "MSWin32" or $^O eq "os2" |
|
161
|
0 |
0 |
if -e $sfile |
|
162
|
0 |
0 |
unless rename "$sfile.$$", $sfile |
|
174
|
0 |
0 |
unless (@stat) |
|
180
|
0 |
0 |
unless chmod $stat[2], $dest |
|
183
|
0 |
0 |
if $@ |
|
186
|
0 |
0 |
unless (chown $stat[4], $stat[5], $dest) |
|
194
|
0 |
0 |
if $@ |
|
202
|
0 |
3 |
if ($file =~ s[/CHECKSUMS(.gz)?$][]) |
|
206
|
0 |
0 |
if $last->{'end'} - time > 3600 |
|
207
|
0 |
0 |
unless $last->{'file'} |
|
208
|
0 |
0 |
unless $file eq dirname($last->{'file'}) |
|
212
|
0 |
3 |
if ($CPAN::Config->{'randomize_urllist'} and rand 1 < $CPAN::Config->{'randomize_urllist'}) { } |
|
226
|
0 |
3 |
if $CPAN::DEBUG |
|
229
|
0 |
3 |
unless (ref $CPAN::Config->{'urllist'} eq "ARRAY") |
|
233
|
3 |
0 |
if defined $_ |
|
234
|
0 |
3 |
if $with_defaults |
|
236
|
0 |
3 |
if $CPAN::DEBUG |
|
237
|
0 |
3 |
if (UNIVERSAL::can($u, 'text')) { } |
|
238
|
0 |
0 |
unless substr($u->{'TEXT'}, -1) eq "/" |
|
240
|
3 |
0 |
unless substr($u, -1) eq "/" |
|
250
|
0 |
0 |
if $CPAN::DEBUG |
|
255
|
0 |
0 |
unless ($ftp) |
|
259
|
0 |
0 |
unless defined $ftp |
|
260
|
0 |
0 |
if $CPAN::DEBUG{'FTP'} & $CPAN::DEBUG |
|
262
|
0 |
0 |
unless ($ftp->login("anonymous", $Config::Config{'cf_email'})) |
|
267
|
0 |
0 |
unless ($ftp->cwd($dir)) |
|
273
|
0 |
0 |
if $CPAN::DEBUG |
|
274
|
0 |
0 |
unless ($ftp->get($file, $target)) |
|
315
|
0 |
3 |
unless defined $aslocal |
|
317
|
0 |
3 |
if ($CPAN::DEBUG) |
|
323
|
0 |
3 |
if not defined $CPAN::FTP::connect_to_internet_ok and defined $_ |
|
326
|
0 |
3 |
if (not defined $ph or $ph) { } |
|
335
|
0 |
0 |
if (-f $aslocal and -r _ and not $force & 1) |
|
337
|
0 |
0 |
if ($size = -s $aslocal) { } |
|
338
|
0 |
0 |
if $CPAN::DEBUG |
|
342
|
0 |
0 |
unless unlink $aslocal |
|
353
|
0 |
0 |
if $self->have_promising_aslocal($aslocal, $force) |
|
359
|
0 |
0 |
if ($CPAN::META->has_usable('HTTP::Tiny') and $CPAN::META->has_usable('Net::SSLeay') and $CPAN::META->has_usable('IO::Socket::SSL') or $CPAN::Config->{'curl'} or $CPAN::Config->{'wget'}) { } |
|
368
|
0 |
0 |
if $CPAN::Config->{$prx} |
|
374
|
0 |
0 |
@missing_modules == 1 ? : |
|
377
|
0 |
0 |
if $CPAN::Config->{$prx} |
|
382
|
0 |
0 |
if ($ret) { } |
|
383
|
0 |
0 |
if $CPAN::DEBUG |
|
384
|
0 |
0 |
if ($ret eq $aslocal_tempfile) |
|
387
|
0 |
0 |
unless rename $aslocal_tempfile, $aslocal |
|
403
|
0 |
0 |
if ($CPAN::META->has_usable('HTTP::Tiny') and $CPAN::META->has_usable('Net::SSLeay') and $CPAN::META->has_usable('IO::Socket::SSL')) { } |
|
|
0 |
0 |
elsif ($CPAN::Config->{'curl'} or $CPAN::Config->{'wget'}) { } |
|
415
|
0 |
0 |
!($url =~ /\.gz(?!\n)\Z/) ? : |
|
418
|
0 |
0 |
if ($res and $res->{'success'}) { } |
|
|
0 |
0 |
elsif ($res and $res->{'status'} ne '599') { } |
|
|
0 |
0 |
elsif ($res and $res->{'status'} eq '599') { } |
|
454
|
0 |
0 |
unless defined $dlprg_configured |
|
456
|
0 |
0 |
if ($dlprg eq 'wget') { } |
|
|
0 |
0 |
elsif ($dlprg eq 'curl') { } |
|
461
|
0 |
0 |
if ($proxy_vars->{'http_proxy'}) |
|
474
|
0 |
0 |
if $CPAN::DEBUG |
|
476
|
0 |
0 |
if ($wstatus == 0) { } |
|
480
|
0 |
0 |
-f $aslocal ? : |
|
496
|
0 |
3 |
if ($^O eq "MacOS") |
|
500
|
0 |
0 |
if (length $name > 31) |
|
520
|
0 |
3 |
if $self->have_promising_aslocal($aslocal, $force) |
|
522
|
0 |
3 |
if (-f $aslocal) |
|
529
|
0 |
3 |
if ($CPAN::META->has_usable("LWP::UserAgent")) |
|
530
|
0 |
0 |
unless ($CPAN::FTP::Ua) |
|
533
|
0 |
0 |
if ($@) { } |
|
534
|
0 |
0 |
if $CPAN::DEBUG |
|
539
|
0 |
0 |
if $var = $CPAN::Config->{'ftp_proxy'} || $ENV{'ftp_proxy'} |
|
541
|
0 |
0 |
if $var = $CPAN::Config->{'http_proxy'} || $ENV{'http_proxy'} |
|
543
|
0 |
0 |
if $var = $CPAN::Config->{'no_proxy'} || $ENV{'no_proxy'} |
|
548
|
0 |
9 |
if $CPAN::Config->{$prx} |
|
556
|
3 |
0 |
if ($force & 2) { } |
|
561
|
0 |
0 |
unless (substr($ccurllist->[$b], 0, 4) eq "file") <=> (substr($ccurllist->[$a], 0, 4) eq "file") |
|
574
|
0 |
3 |
if $CPAN::DEBUG |
|
586
|
2 |
1 |
if ($CPAN::FTP::Themethod) { } |
|
592
|
0 |
3 |
if $^O eq "MacOS" |
|
596
|
0 |
3 |
exists $CPAN::Config->{'ftp_passive'} ? : |
|
602
|
0 |
3 |
unless $scheme and "file" eq $scheme |
|
605
|
0 |
3 |
if ($defaultsites) { } |
|
606
|
0 |
0 |
unless (defined $CPAN::FTP::connect_to_internet_ok) |
|
616
|
0 |
0 |
if ($answer =~ /^y/i) { } |
|
622
|
0 |
0 |
if ($CPAN::FTP::connect_to_internet_ok) { } |
|
633
|
3 |
0 |
$level =~ /dleasy/ ? : |
|
637
|
0 |
3 |
if $CPAN::DEBUG |
|
639
|
0 |
3 |
if (my $recommend = $self->_recommend_url_for($file, \@urllist)) |
|
643
|
0 |
3 |
if $CPAN::DEBUG |
|
645
|
3 |
0 |
if ($ret) { } |
|
646
|
0 |
3 |
if $CPAN::DEBUG |
|
647
|
0 |
3 |
if ($ret eq $aslocal_tempfile) { } |
|
|
3 |
0 |
elsif (-f $ret and $scheme eq 'file') { } |
|
650
|
0 |
0 |
unless rename $aslocal_tempfile, $aslocal |
|
663
|
0 |
3 |
if $CPAN::DEBUG |
|
667
|
0 |
0 |
if $CPAN::Signal |
|
670
|
3 |
0 |
if ($ret) |
|
673
|
0 |
3 |
if $CPAN::DEBUG |
|
675
|
0 |
3 |
if $CPAN::DEBUG |
|
676
|
3 |
0 |
if ($ret) |
|
680
|
0 |
0 |
unless ($CPAN::Signal) |
|
683
|
0 |
0 |
if (@{$CPAN::Config->{'urllist'};}) { } |
|
696
|
0 |
0 |
if ($maybe_restore) |
|
708
|
0 |
0 |
unless -w $aslocal_dir |
|
719
|
3 |
0 |
if $scheme |
|
740
|
0 |
3 |
if $CPAN::DEBUG |
|
741
|
3 |
0 |
if ($url =~ /^file:/) |
|
743
|
3 |
0 |
if ($CPAN::META->has_inst('URI::URL')) { } |
|
756
|
0 |
0 |
if not -f $l and $l =~ m[^/\w:] |
|
759
|
0 |
3 |
if $CPAN::DEBUG |
|
760
|
0 |
3 |
if (-f $l and -r _) |
|
767
|
3 |
0 |
if ($l =~ /(.+)\.gz$/) { } |
|
|
0 |
0 |
elsif (-f $l and -r _) { } |
|
|
0 |
0 |
elsif (-f "$l.gz") { } |
|
769
|
3 |
0 |
if (-f $ungz and -r _) { } |
|
|
0 |
0 |
elsif (-f $l and -r _) { } |
|
775
|
0 |
0 |
if (-f $aslocal and -s _) { } |
|
|
0 |
0 |
elsif (not -s $aslocal) { } |
|
|
0 |
0 |
elsif (-f $l) { } |
|
783
|
0 |
0 |
if $@ |
|
797
|
0 |
0 |
if $CPAN::DEBUG |
|
799
|
0 |
0 |
if (-f $aslocal) { } |
|
804
|
0 |
0 |
if $@ |
|
811
|
0 |
0 |
if $CPAN::DEBUG |
|
812
|
0 |
0 |
if ($CPAN::META->has_usable('LWP')) { } |
|
|
0 |
0 |
elsif ($url =~ /^http:/i and $CPAN::META->has_usable('HTTP::Tiny')) { } |
|
814
|
0 |
0 |
unless ($CPAN::FTP::Ua) |
|
817
|
0 |
0 |
if ($@) |
|
822
|
0 |
0 |
if ($res->is_success) { } |
|
|
0 |
0 |
elsif (not $url =~ /\.gz(?!\n)\Z/) { } |
|
833
|
0 |
0 |
if ($res->is_success) |
|
834
|
0 |
0 |
if (eval {
do {
"CPAN::Tarzip"->new("$aslocal.gz")->gunzip($aslocal)
}
}) |
|
855
|
0 |
0 |
!($url =~ /\.gz(?!\n)\Z/) ? : |
|
858
|
0 |
0 |
if ($res and $res->{'success'}) { } |
|
|
0 |
0 |
elsif ($res and $res->{'status'} ne '599') { } |
|
|
0 |
0 |
elsif ($res and $res->{'status'} eq '599') { } |
|
890
|
0 |
0 |
if $CPAN::Signal |
|
891
|
0 |
0 |
if ($url =~ m[^ftp://(.*?)/(.*)/(.*)]) |
|
893
|
0 |
0 |
if $CPAN::DEBUG |
|
895
|
0 |
0 |
if ($CPAN::META->has_usable('Net::FTP')) { } |
|
898
|
0 |
0 |
if $CPAN::DEBUG |
|
900
|
0 |
0 |
if ("CPAN::FTP"->ftp_get($host, $dir, $getfile, $aslocal)) |
|
904
|
0 |
0 |
unless ($aslocal =~ /\.gz(?!\n)\Z/) |
|
907
|
0 |
0 |
if ("CPAN::FTP"->ftp_get($host, $dir, "$getfile.gz", $gz) and eval {
do {
"CPAN::Tarzip"->new($gz)->gunzip($aslocal)
}
}) |
|
919
|
0 |
0 |
if $CPAN::DEBUG |
|
922
|
0 |
0 |
if (UNIVERSAL::can($ro_url, "text") and $ro_url->{'FROM'} eq "USER") |
|
930
|
0 |
0 |
if $ret |
|
932
|
0 |
0 |
if $CPAN::Signal |
|
959
|
0 |
0 |
if ($url =~ m[^([^:]+)://(.*?)/(.*)/(.*)]) { } |
|
965
|
0 |
0 |
if $proto eq "file" |
|
971
|
0 |
0 |
if $CPAN::DEBUG |
|
978
|
0 |
0 |
unless defined $funkyftp |
|
979
|
0 |
0 |
if $funkyftp =~ /^\s*$/ |
|
984
|
0 |
0 |
if ($f eq 'lynx') { } |
|
|
0 |
0 |
elsif ($f eq 'ncftp') { } |
|
|
0 |
0 |
elsif ($f eq 'wget') { } |
|
|
0 |
0 |
elsif ($f eq 'curl') { } |
|
|
0 |
0 |
elsif ($f eq 'ncftpget') { } |
|
987
|
0 |
0 |
unless $url =~ m[\Aftp://] |
|
994
|
0 |
0 |
if ($proxy_vars->{'http_proxy'}) |
|
998
|
0 |
0 |
unless $url =~ m[\Aftp://] |
|
1011
|
0 |
0 |
if $CPAN::DEBUG |
|
1013
|
0 |
0 |
if ($f eq "lynx") |
|
1015
|
0 |
0 |
if (-s $aslocal) { } |
|
1017
|
0 |
0 |
unless open FH, $aslocal |
|
1020
|
0 |
0 |
if ($content =~ /^<.*([45]|Error [45])/is) |
|
1036
|
0 |
0 |
if ($wstatus == 0) { } |
|
1037
|
0 |
0 |
if (-s $aslocal) |
|
1045
|
0 |
0 |
-f $aslocal ? : |
|
1053
|
0 |
0 |
if $CPAN::Signal |
|
1056
|
0 |
0 |
unless $any_attempt |
|
1057
|
0 |
0 |
if ($some_dl_success) { } |
|
1070
|
2 |
0 |
if ($http_proxy) |
|
1075
|
2 |
0 |
if ($host) { } |
|
1077
|
1 |
1 |
if ($host =~ /\Q$domain\E$/) |
|
1085
|
1 |
1 |
if ($want_proxy) |
|
1102
|
0 |
0 |
unless @$host_seq |
|
1107
|
0 |
0 |
unless ($ftpbin and length $ftpbin and "MM"->maybe_command($ftpbin)) |
|
1128
|
0 |
0 |
if $CPAN::DEBUG |
|
1129
|
0 |
0 |
unless ($url =~ m[^ftp://(.*?)/(.*)/(.*)]) |
|
1139
|
0 |
0 |
$CPAN::DEBUG{'FTP'} & $CPAN::DEBUG ? : |
|
1152
|
0 |
0 |
if (not $netrcfile) { } |
|
|
0 |
0 |
elsif ($netrc->hasdefault or $netrc->contains($host)) { } |
|
1153
|
0 |
0 |
if $CPAN::DEBUG |
|
1155
|
0 |
0 |
if $CPAN::DEBUG |
|
1158
|
0 |
0 |
if ($netrc->protected) { } |
|
1161
|
0 |
0 |
if ($netrc->contains($host)) { } |
|
1181
|
0 |
0 |
if ($mtime > $timestamp) { } |
|
1188
|
0 |
0 |
if $CPAN::Signal |
|
1219
|
0 |
0 |
if ($mtime > $timestamp) { } |
|
1226
|
0 |
0 |
if $CPAN::Signal |
|
1236
|
0 |
0 |
unless $fh->open("|$command") |
|
1241
|
0 |
0 |
if $wstatus |
|
1258
|
0 |
0 |
if ($blocks) { } |
|
1265
|
0 |
0 |
if (-f _) { } |
|
|
0 |
0 |
elsif (-d _) { } |
|
|
0 |
0 |
elsif (-c _) { } |
|
|
0 |
0 |
elsif (-b _) { } |
|
|
0 |
0 |
elsif (-p _) { } |
|
|
0 |
0 |
elsif (-S _) { } |
|
1281
|
0 |
0 |
if -u _ |
|
1282
|
0 |
0 |
if -g _ |
|
1283
|
0 |
0 |
if -k _ |
|
1292
|
0 |
0 |
if (-M _ > 182.625) { } |