From f75160d1021ba6675696b23dd68463cb36dfe438 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 2 Aug 2006 13:22:14 +0000 Subject: For curl downloads, use the --anyauth options (solves an issue when a site rejects basic auth) --- urpm/download.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urpm') 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) . " |"; -- cgit v1.2.1