From 2423ddc80cfb7c1c55e7041d3df3564f36450bf8 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 25 Sep 2009 16:15:45 +0000 Subject: default to checking certificates when dowloading data --- urpm/download.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'urpm/download.pm') diff --git a/urpm/download.pm b/urpm/download.pm index 83c6767d..75a8b3d5 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -322,7 +322,7 @@ sub sync_wget { ($options->{callback} ? ("--progress=bar:force", "-o", "-") : $options->{quiet} ? "-q" : @{[]}), "--retr-symlinks", - ($options->{"strict-certificate-check"} ? () : "--no-check-certificate"), + ($options->{"no-certificate-check"} ? "--no-check-certificate" : ()), "--timeout=$CONNECT_TIMEOUT", (defined $options->{'wget-options'} ? split /\s+/, $options->{'wget-options'} : ()), '-P', $options->{dir}, @@ -470,7 +470,7 @@ sub sync_curl { ($options->{proxy} ? set_proxy({ type => "curl", proxy => $options->{proxy} }) : ()), ($options->{retry} ? ('--retry', $options->{retry}) : ()), ($options->{quiet} ? "-s" : @{[]}), - ($options->{"strict-certificate-check"} ? () : "-k"), + ($options->{"no-certificate-check"} ? "-k" : ()), $location_trusted ? "--location-trusted" : @{[]}, "-R", "-f", @@ -683,7 +683,7 @@ sub sync_aria2 { ($options->{'limit-rate'} ? "--max-download-limit=" . $options->{'limit-rate'} : ()), ($options->{resume} ? "--continue" : "--allow-overwrite=true"), ($options->{proxy} ? set_proxy({ type => "aria2", proxy => $options->{proxy} }) : ()), - ($options->{"strict-certificate-check"} ? () : "--check-certificate=false"), + ($options->{"no-certificate-check"} ? "--check-certificate=false" : ()), (defined $options->{'aria2-options'} ? split /\s+/, $options->{'aria2-options'} : ()), _create_metalink_($urpm, $medium, $rel_files, $options)); -- cgit v1.2.1