summaryrefslogtreecommitdiffstats
path: root/urpm/mirrors.pm
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-08-31 15:58:30 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-08-31 15:58:30 +0000
commit4618d4bd87174a1650469db2b8918a03eac6e376 (patch)
treead4a7ea221d6c8e08bbec0947575a6eb500cf7de /urpm/mirrors.pm
parenta5f6166ab0a39fb062bcafdaf8b8348314f613b4 (diff)
downloadurpmi-4618d4bd87174a1650469db2b8918a03eac6e376.tar
urpmi-4618d4bd87174a1650469db2b8918a03eac6e376.tar.gz
urpmi-4618d4bd87174a1650469db2b8918a03eac6e376.tar.bz2
urpmi-4618d4bd87174a1650469db2b8918a03eac6e376.tar.xz
urpmi-4618d4bd87174a1650469db2b8918a03eac6e376.zip
use https when getting files from api.mandriva.com
Diffstat (limited to 'urpm/mirrors.pm')
-rw-r--r--urpm/mirrors.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/mirrors.pm b/urpm/mirrors.pm
index b033e80c..48b77542 100644
--- a/urpm/mirrors.pm
+++ b/urpm/mirrors.pm
@@ -274,7 +274,7 @@ sub _mirrors_raw {
my ($urpm, $url) = @_;
$urpm->{log}(N("getting mirror list from %s", $url));
- my @l = urpm::download::get_content($urpm, $url) or $urpm->{error}("mirror list not found");
+ my @l = urpm::download::get_content($urpm, $url, "strict-certificate-check" => 1) or $urpm->{error}("mirror list not found");
@l;
}
@@ -301,7 +301,7 @@ sub _mandriva_mirrorlist {
my @para = grep { $_ } $ENV{URPMI_ADDMEDIA_REASON};
my $product_version = $ENV{URPMI_ADDMEDIA_PRODUCT_VERSION} || $product_id->{version};
- "http://api.mandriva.com/mirrors/$product_type.$product_version.$arch.list"
+ "https://api.mandriva.com/mirrors/$product_type.$product_version.$arch.list"
. (@para ? '?' . join('&', @para) : '');
}