Commit 46ecf526 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 409595: install-module.pl should shuffle the urllist for the CPAN mirrors

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
parent 57411366
...@@ -29,6 +29,7 @@ use Bugzilla::Install::Util qw(bin_loc install_string); ...@@ -29,6 +29,7 @@ use Bugzilla::Install::Util qw(bin_loc install_string);
use CPAN; use CPAN;
use Cwd qw(abs_path); use Cwd qw(abs_path);
use File::Path qw(rmtree); use File::Path qw(rmtree);
use List::Util qw(shuffle);
# We need the absolute path of ext_libpath, because CPAN chdirs around # We need the absolute path of ext_libpath, because CPAN chdirs around
# and so we can't use a relative directory. # and so we can't use a relative directory.
...@@ -62,7 +63,7 @@ use constant CPAN_DEFAULTS => { ...@@ -62,7 +63,7 @@ use constant CPAN_DEFAULTS => {
unzip => bin_loc('unzip'), unzip => bin_loc('unzip'),
wget => bin_loc('wget'), wget => bin_loc('wget'),
urllist => [qw( urllist => [shuffle qw(
http://cpan.pair.com/ http://cpan.pair.com/
http://mirror.hiwaay.net/CPAN/ http://mirror.hiwaay.net/CPAN/
ftp://ftp.dc.aleron.net/pub/CPAN/ ftp://ftp.dc.aleron.net/pub/CPAN/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment