diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-07-19 02:03:36 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-07-19 02:03:36 +0000 |
commit | e4ffed4ddafea0cb5fc3e0ded50c5946a69b6e96 (patch) | |
tree | 207e1488b602900ab33a9f1020ee30dfecaadc5a | |
parent | 554a1450bf4112b39b7cae581a41677d4ea9c116 (diff) | |
download | urpmi-e4ffed4ddafea0cb5fc3e0ded50c5946a69b6e96.tar urpmi-e4ffed4ddafea0cb5fc3e0ded50c5946a69b6e96.tar.gz urpmi-e4ffed4ddafea0cb5fc3e0ded50c5946a69b6e96.tar.bz2 urpmi-e4ffed4ddafea0cb5fc3e0ded50c5946a69b6e96.tar.xz urpmi-e4ffed4ddafea0cb5fc3e0ded50c5946a69b6e96.zip |
Add the --disable-epsv option to curl, to be friendy with some firewalls
-rw-r--r-- | urpm/download.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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!). |