CPAN::FTP has problems with curl and other command line
programs. Having mirror autoconfig prefer http URLs was
triggering these bugs for any bootstrap installation without
LWP.
This hotfix forces only ftp URLs from autoconfig which
hides the problem for now until CPAN::FTP can be fixed
upstream.
how_many => 5,
callback => sub { $CPAN::Frontend->myprint(".") },
);
- my $urllist = [ map { $_->url } @best ];
+ my $urllist = [ map { $_->ftp } @best ];
push @$urllist, grep { /^file:/ } @{$CPAN::Config->{urllist}};
$CPAN::Frontend->myprint(" done!\n\n");
return $urllist;
my @timings;
for my $m ($self->mirrors($self->countries(@$conts))) {
+ next unless $m->ftp;
my $hostname = $m->hostname;
if ( $seen->{$hostname} ) {
push @timings, $seen->{$hostname}
sub url {
my $self = shift;
- return $self->{http} || $self->{ftp};
+ return $self->{ftp} || $self->{http};
}
sub ping {