From cbce1c78657ba5d44bebc6117e2b1899f9b2b3e5 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 1 Sep 2009 08:54:41 +0000 Subject: use https to grab mirrorlist from api.mandriva.com --- NEWS | 3 +++ mdkapplet | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index bd8ff912..054d6a12 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +- mdkapplet + o use https to fetch mirrorlist from api.mandriva.com + Version 2.77.4 - 29 July 2009, Thierry Vignaud - mdkapplet-config diff --git a/mdkapplet b/mdkapplet index 04aaeb58..0a953907 100755 --- a/mdkapplet +++ b/mdkapplet @@ -280,7 +280,7 @@ sub get_distro_list() { #- contact the following URL to retrieve the list of released distributions. my $type = lc($product_id->{type}); $type =~ s/\s//g; my $extra_path = $::testing || uc($config{TEST_DISTRO_UPGRADE}) eq 'YES' ? 'testing-' : ''; - my $list = "http://api.mandriva.com/distributions/$extra_path$type.$product_id->{arch}.list?product=$product_id->{product}"; + my $list = "https://api.mandriva.com/distributions/$extra_path$type.$product_id->{arch}.list?product=$product_id->{product}"; log::explanations("trying distributions list from $list"); eval { @@ -297,7 +297,7 @@ sub get_distro_list() { mdkapplet_urpm::get_content($urpm, $list); } else { urpm::ensure_valid_cachedir($urpm); - urpm::download::get_content($urpm, $list); + urpm::download::get_content($urpm, $list, "strict-certificate-check" => 1); } }; } -- cgit v1.2.1