summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-08-02 13:22:14 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-08-02 13:22:14 +0000
commitf75160d1021ba6675696b23dd68463cb36dfe438 (patch)
treef4abbd6ff35139e8286cb773fd9d2716637e8436
parent13ce336f744d8b2849ace98b8c81040052a00f71 (diff)
downloadurpmi-f75160d1021ba6675696b23dd68463cb36dfe438.tar
urpmi-f75160d1021ba6675696b23dd68463cb36dfe438.tar.gz
urpmi-f75160d1021ba6675696b23dd68463cb36dfe438.tar.bz2
urpmi-f75160d1021ba6675696b23dd68463cb36dfe438.tar.xz
urpmi-f75160d1021ba6675696b23dd68463cb36dfe438.zip
For curl downloads, use the --anyauth options (solves an issue
when a site rejects basic auth)
-rw-r--r--urpm/download.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index bea3a3c3..909bcb37 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -309,6 +309,7 @@ sub sync_curl {
"--disable-epsv",
"--connect-timeout", $CONNECT_TIMEOUT,
"-s", "-I",
+ "--anyauth",
(defined $options->{'curl-options'} ? split /\s+/, $options->{'curl-options'} : ()),
@ftp_files) . " |";
while (<$curl>) {
@@ -370,6 +371,7 @@ sub sync_curl {
"-f",
"--disable-epsv",
"--connect-timeout", $CONNECT_TIMEOUT,
+ "--anyauth",
(defined $options->{'curl-options'} ? split /\s+/, $options->{'curl-options'} : ()),
"--stderr", "-", # redirect everything to stdout
@all_files) . " |";