From e4ffed4ddafea0cb5fc3e0ded50c5946a69b6e96 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 19 Jul 2004 02:03:36 +0000 Subject: Add the --disable-epsv option to curl, to be friendy with some firewalls --- urpm/download.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urpm/download.pm') diff --git a/urpm/download.pm b/urpm/download.pm index 3df420fc..e8585a58 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -246,6 +246,7 @@ sub sync_curl { ($options->{limit_rate} ? ("--limit-rate", $options->{limit_rate}) : ()), ($options->{proxy} ? set_proxy({ type => "curl", proxy => $options->{proxy} }) : ()), "--stderr", "-", # redirect everything to stdout + "--disable-epsv", "-s", "-I", @ftp_files) . " |"; while (<$curl>) { if (/Content-Length:\s*(\d+)/) { @@ -305,6 +306,7 @@ sub sync_curl { $location_trusted ? "--location-trusted" : @{[]}, "-R", "-f", + "--disable-epsv", "--stderr", "-", # redirect everything to stdout @all_files) . " |"; local $/ = \1; #- read input by only one char, this is slow but very nice (and it works!). -- cgit v1.2.1