Use the same mirror for cpanm as we use for CPAN
Peter Rabbitson [Mon, 26 Aug 2013 03:06:59 +0000 (05:06 +0200)]
maint/travis-ci_scripts/20_install.bash

index 6010f76..a9cac43 100755 (executable)
@@ -8,6 +8,7 @@ if ! [[ "$CPAN_MIRROR" =~ "http://" ]] ; then
   echo_err "Unable to extract primary cpan mirror from PERL_CPANM_OPT - something is wrong"
   echo_err "PERL_CPANM_OPT: $PERL_CPANM_OPT"
   CPAN_MIRROR="http://cpan.develooper.com/"
+  PERL_CPANM_OPT="$PERL_CPANM_OPT --mirror $CPAN_MIRROR"
   echo_err "Using $CPAN_MIRROR for the time being"
 fi