| line |
true |
false |
branch |
|
26
|
0 |
0 |
if exists &Errno::EAGAIN and $! == &Errno::EAGAIN |
|
27
|
0 |
0 |
if ++$cnt > 100000 |
|
38
|
0 |
7 |
if defined $ftpstats_size and $ftpstats_size <= 0 |
|
39
|
0 |
7 |
$fh ? : |
|
43
|
0 |
7 |
if $^O eq "MSWin32" |
|
52
|
0 |
0 |
if ($sleep > 3) |
|
59
|
0 |
0 |
if ($sleep <= 6) { } |
|
67
|
0 |
7 |
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
|
76 |
0 |
if ('CPAN'->has_inst('Time::HiRes')) { } |
|
115
|
0 |
38 |
if $CPAN::DEBUG |
|
116
|
0 |
38 |
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
|
7 |
31 |
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 |
38 |
if ($CPAN::Config->{'randomize_urllist'} and rand 1 < $CPAN::Config->{'randomize_urllist'}) { } |
|
226
|
0 |
38 |
if $CPAN::DEBUG |
|
229
|
0 |
38 |
unless (ref $CPAN::Config->{'urllist'} eq "ARRAY") |
|
233
|
38 |
0 |
if defined $_ |
|
234
|
0 |
38 |
if $with_defaults |
|
236
|
0 |
38 |
if $CPAN::DEBUG |
|
237
|
0 |
38 |
if (UNIVERSAL::can($u, 'text')) { } |
|
238
|
0 |
0 |
unless substr($u->{'TEXT'}, -1) eq "/" |
|
240
|
38 |
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 |
38 |
unless defined $aslocal |
|
317
|
0 |
38 |
if ($CPAN::DEBUG) |
|
323
|
7 |
31 |
if not defined $CPAN::FTP::connect_to_internet_ok and defined $_ |
|
326
|
0 |
38 |
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 ? : |
|
376
|
0 |
0 |
if ($CPAN::META->has_usable("HTTP::Tiny")) |
|
380
|
0 |
0 |
if $CPAN::Config->{$prx} |
|
385
|
0 |
0 |
if ($ret) { } |
|
386
|
0 |
0 |
if $CPAN::DEBUG |
|
387
|
0 |
0 |
if ($ret eq $aslocal_tempfile) |
|
390
|
0 |
0 |
unless rename $aslocal_tempfile, $aslocal |
|
408
|
0 |
0 |
if ($CPAN::META->has_usable('HTTP::Tiny') and $proto eq 'http' || $CPAN::META->has_usable('Net::SSLeay') && $CPAN::META->has_usable('IO::Socket::SSL')) { } |
|
|
0 |
0 |
elsif ($CPAN::Config->{'curl'} or $CPAN::Config->{'wget'}) { } |
|
424
|
0 |
0 |
!($url =~ /\.gz(?!\n)\Z/) ? : |
|
427
|
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') { } |
|
463
|
0 |
0 |
unless defined $dlprg_configured and length $dlprg_configured |
|
465
|
0 |
0 |
if ($dlprg eq 'wget') { } |
|
|
0 |
0 |
elsif ($dlprg eq 'curl') { } |
|
471
|
0 |
0 |
if ($proxy_vars->{'http_proxy'}) |
|
484
|
0 |
0 |
if $CPAN::DEBUG |
|
486
|
0 |
0 |
if ($wstatus == 0) { } |
|
490
|
0 |
0 |
-f $aslocal ? : |
|
507
|
0 |
38 |
if $self->have_promising_aslocal($aslocal, $force) |
|
509
|
0 |
38 |
if (-f $aslocal) |
|
516
|
38 |
0 |
if ($CPAN::META->has_usable("LWP::UserAgent")) |
|
517
|
8 |
30 |
unless ($CPAN::FTP::Ua) |
|
520
|
0 |
8 |
if ($@) { } |
|
521
|
0 |
0 |
if $CPAN::DEBUG |
|
526
|
0 |
8 |
if $var = $CPAN::Config->{'ftp_proxy'} || $ENV{'ftp_proxy'} |
|
528
|
0 |
8 |
if $var = $CPAN::Config->{'http_proxy'} || $ENV{'http_proxy'} |
|
530
|
0 |
8 |
if $var = $CPAN::Config->{'no_proxy'} || $ENV{'no_proxy'} |
|
535
|
0 |
114 |
if $CPAN::Config->{$prx} |
|
543
|
24 |
14 |
if ($force & 2) { } |
|
548
|
0 |
0 |
unless (substr($ccurllist->[$b], 0, 4) eq "file") <=> (substr($ccurllist->[$a], 0, 4) eq "file") |
|
561
|
0 |
38 |
if $CPAN::DEBUG |
|
573
|
30 |
8 |
if ($CPAN::FTP::Themethod) { } |
|
582
|
35 |
3 |
exists $CPAN::Config->{'ftp_passive'} ? : |
|
588
|
0 |
38 |
unless $scheme and "file" eq $scheme |
|
591
|
0 |
38 |
if ($defaultsites) { } |
|
592
|
0 |
0 |
unless (defined $CPAN::FTP::connect_to_internet_ok) |
|
602
|
0 |
0 |
if ($answer =~ /^y/i) { } |
|
608
|
0 |
0 |
if ($CPAN::FTP::connect_to_internet_ok) { } |
|
619
|
38 |
0 |
$level =~ /dleasy/ ? : |
|
623
|
0 |
38 |
if $CPAN::DEBUG |
|
625
|
0 |
38 |
if (my $recommend = $self->_recommend_url_for($file, \@urllist)) |
|
629
|
0 |
38 |
if $CPAN::DEBUG |
|
631
|
38 |
0 |
if ($ret) { } |
|
632
|
0 |
38 |
if $CPAN::DEBUG |
|
633
|
0 |
38 |
if ($ret eq $aslocal_tempfile) { } |
|
|
38 |
0 |
elsif (-f $ret and $scheme eq 'file') { } |
|
636
|
0 |
0 |
unless rename $aslocal_tempfile, $aslocal |
|
649
|
0 |
38 |
if $CPAN::DEBUG |
|
653
|
0 |
0 |
if $CPAN::Signal |
|
656
|
38 |
0 |
if ($ret) |
|
659
|
0 |
38 |
if $CPAN::DEBUG |
|
661
|
0 |
38 |
if $CPAN::DEBUG |
|
662
|
38 |
0 |
if ($ret) |
|
666
|
0 |
0 |
unless ($CPAN::Signal) |
|
669
|
0 |
0 |
if (@{$CPAN::Config->{'urllist'};}) { } |
|
682
|
0 |
0 |
if ($maybe_restore) |
|
694
|
0 |
0 |
unless -w $aslocal_dir |
|
705
|
38 |
0 |
if $scheme |
|
726
|
0 |
38 |
if $CPAN::DEBUG |
|
727
|
38 |
0 |
if ($url =~ /^file:/) |
|
729
|
38 |
0 |
if ($CPAN::META->has_inst('URI::URL')) { } |
|
742
|
0 |
0 |
if not -f $l and $l =~ m[^/\w:] |
|
745
|
0 |
38 |
if $CPAN::DEBUG |
|
746
|
28 |
10 |
if (-f $l and -r _) |
|
753
|
10 |
0 |
if ($l =~ /(.+)\.gz$/) { } |
|
|
0 |
0 |
elsif (-f $l and -r _) { } |
|
|
0 |
0 |
elsif (-f "$l.gz") { } |
|
755
|
10 |
0 |
if (-f $ungz and -r _) { } |
|
|
0 |
0 |
elsif (-f $l and -r _) { } |
|
761
|
0 |
0 |
if (-f $aslocal and -s _) { } |
|
|
0 |
0 |
elsif (not -s $aslocal) { } |
|
|
0 |
0 |
elsif (-f $l) { } |
|
769
|
0 |
0 |
if $@ |
|
783
|
0 |
0 |
if $CPAN::DEBUG |
|
785
|
0 |
0 |
if (-f $aslocal) { } |
|
790
|
0 |
0 |
if $@ |
|
797
|
0 |
0 |
if $CPAN::DEBUG |
|
798
|
0 |
0 |
if ($CPAN::META->has_usable('LWP')) { } |
|
|
0 |
0 |
elsif ($url =~ /^http:/i and $CPAN::META->has_usable('HTTP::Tiny')) { } |
|
800
|
0 |
0 |
unless ($CPAN::FTP::Ua) |
|
803
|
0 |
0 |
if ($@) |
|
808
|
0 |
0 |
if ($res->is_success) { } |
|
|
0 |
0 |
elsif (not $url =~ /\.gz(?!\n)\Z/) { } |
|
819
|
0 |
0 |
if ($res->is_success) |
|
820
|
0 |
0 |
if (eval {
do {
"CPAN::Tarzip"->new("$aslocal.gz")->gunzip($aslocal)
}
}) |
|
841
|
0 |
0 |
!($url =~ /\.gz(?!\n)\Z/) ? : |
|
844
|
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') { } |
|
876
|
0 |
0 |
if $CPAN::Signal |
|
877
|
0 |
0 |
if ($url =~ m[^ftp://(.*?)/(.*)/(.*)]) |
|
879
|
0 |
0 |
if $CPAN::DEBUG |
|
881
|
0 |
0 |
if ($CPAN::META->has_usable('Net::FTP')) { } |
|
884
|
0 |
0 |
if $CPAN::DEBUG |
|
886
|
0 |
0 |
if ("CPAN::FTP"->ftp_get($host, $dir, $getfile, $aslocal)) |
|
890
|
0 |
0 |
unless ($aslocal =~ /\.gz(?!\n)\Z/) |
|
893
|
0 |
0 |
if ("CPAN::FTP"->ftp_get($host, $dir, "$getfile.gz", $gz) and eval {
do {
"CPAN::Tarzip"->new($gz)->gunzip($aslocal)
}
}) |
|
905
|
0 |
0 |
if $CPAN::DEBUG |
|
908
|
0 |
0 |
if (UNIVERSAL::can($ro_url, "text") and $ro_url->{'FROM'} eq "USER") |
|
916
|
0 |
0 |
if $ret |
|
918
|
0 |
0 |
if $CPAN::Signal |
|
945
|
0 |
0 |
if ($url =~ m[^([^:]+)://(.*?)/(.*)/(.*)]) { } |
|
951
|
0 |
0 |
if $proto eq "file" |
|
957
|
0 |
0 |
if $CPAN::DEBUG |
|
964
|
0 |
0 |
unless defined $funkyftp |
|
965
|
0 |
0 |
if $funkyftp =~ /^\s*$/ |
|
970
|
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') { } |
|
973
|
0 |
0 |
unless $url =~ m[\Aftp://] |
|
980
|
0 |
0 |
if ($proxy_vars->{'http_proxy'}) |
|
984
|
0 |
0 |
unless $url =~ m[\Aftp://] |
|
997
|
0 |
0 |
if $CPAN::DEBUG |
|
999
|
0 |
0 |
if ($f eq "lynx") |
|
1001
|
0 |
0 |
if (-s $aslocal) { } |
|
1003
|
0 |
0 |
unless open FH, $aslocal |
|
1006
|
0 |
0 |
if ($content =~ /^<.*([45]|Error [45])/is) |
|
1022
|
0 |
0 |
if ($wstatus == 0) { } |
|
1023
|
0 |
0 |
if (-s $aslocal) |
|
1031
|
0 |
0 |
-f $aslocal ? : |
|
1039
|
0 |
0 |
if $CPAN::Signal |
|
1042
|
0 |
0 |
unless $any_attempt |
|
1043
|
0 |
0 |
if ($some_dl_success) { } |
|
1056
|
2 |
0 |
if ($http_proxy) |
|
1061
|
2 |
0 |
if ($host) { } |
|
1063
|
1 |
1 |
if ($host =~ /\Q$domain\E$/) |
|
1071
|
1 |
1 |
if ($want_proxy) |
|
1088
|
0 |
0 |
unless @$host_seq |
|
1093
|
0 |
0 |
unless ($ftpbin and length $ftpbin and "MM"->maybe_command($ftpbin)) |
|
1114
|
0 |
0 |
if $CPAN::DEBUG |
|
1115
|
0 |
0 |
unless ($url =~ m[^ftp://(.*?)/(.*)/(.*)]) |
|
1125
|
0 |
0 |
$CPAN::DEBUG{'FTP'} & $CPAN::DEBUG ? : |
|
1138
|
0 |
0 |
if (not $netrcfile) { } |
|
|
0 |
0 |
elsif ($netrc->hasdefault or $netrc->contains($host)) { } |
|
1139
|
0 |
0 |
if $CPAN::DEBUG |
|
1141
|
0 |
0 |
if $CPAN::DEBUG |
|
1144
|
0 |
0 |
if ($netrc->protected) { } |
|
1147
|
0 |
0 |
if ($netrc->contains($host)) { } |
|
1167
|
0 |
0 |
if ($mtime > $timestamp) { } |
|
1174
|
0 |
0 |
if $CPAN::Signal |
|
1205
|
0 |
0 |
if ($mtime > $timestamp) { } |
|
1212
|
0 |
0 |
if $CPAN::Signal |
|
1222
|
0 |
0 |
unless $fh->open("|$command") |
|
1227
|
0 |
0 |
if $wstatus |
|
1244
|
0 |
0 |
if ($blocks) { } |
|
1251
|
0 |
0 |
if (-f _) { } |
|
|
0 |
0 |
elsif (-d _) { } |
|
|
0 |
0 |
elsif (-c _) { } |
|
|
0 |
0 |
elsif (-b _) { } |
|
|
0 |
0 |
elsif (-p _) { } |
|
|
0 |
0 |
elsif (-S _) { } |
|
1267
|
0 |
0 |
if -u _ |
|
1268
|
0 |
0 |
if -g _ |
|
1269
|
0 |
0 |
if -k _ |
|
1278
|
0 |
0 |
if (-M _ > 182.625) { } |