Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the faster mirror path to use metacpan
  • Loading branch information
miyagawa committed Oct 13, 2011
1 parent 4c787c7 commit c57c08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/App/cpanminus/script.pm
Expand Up @@ -318,7 +318,7 @@ sub search_module {
(my $distfile = $dist_meta->{download_url}) =~ s!.+/authors/id/!!;
local $self->{mirrors} = $self->{mirrors};
if ($dist_meta->{stat}->{mtime} > time()-24*60*60) {
$self->{mirrors} = ['http://cpan.cpantesters.org'];
$self->{mirrors} = ['http://cpan.metacpan.org'];
}
return $self->cpan_module($module, $distfile, $dist_meta->{version});
}
Expand Down

0 comments on commit c57c08f

Please sign in to comment.