summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-08-31 15:58:24 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-08-31 15:58:24 +0000
commit14b2822e5b51df2dbe8726f783cf463e5a298268 (patch)
tree3978237112cef25590efa00bb6407603d7784387 /urpm/download.pm
parent805ed93de42a6e4cc66a713defcc910d469526c3 (diff)
downloadurpmi-14b2822e5b51df2dbe8726f783cf463e5a298268.tar
urpmi-14b2822e5b51df2dbe8726f783cf463e5a298268.tar.gz
urpmi-14b2822e5b51df2dbe8726f783cf463e5a298268.tar.bz2
urpmi-14b2822e5b51df2dbe8726f783cf463e5a298268.tar.xz
urpmi-14b2822e5b51df2dbe8726f783cf463e5a298268.zip
download: add an option to be strict about SSL certificate checks
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 30930077..829e3b2c 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",
- "--no-check-certificate",
+ ($options->{"strict-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" : @{[]}),
- "-k",
+ ($options->{"strict-certificate-check"} ? () : "-k"),
$location_trusted ? "--location-trusted" : @{[]},
"-R",
"-f",