From 310bd5c03a5f47b69cf8ad67de8c9e7823063cd4 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 18 Sep 2006 07:56:51 +0000 Subject: Patch by Nicolas Melay to include -q to the command-line options of curl, so the ~/.curlrc file isn't read. --- urpm/download.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urpm') diff --git a/urpm/download.pm b/urpm/download.pm index e8d92825..57bd191b 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -304,6 +304,7 @@ sub sync_curl { #- prepare to get back size and time stamp of each file. open my $curl, join(" ", map { "'$_'" } "/usr/bin/curl", + "-q", # don't read .curlrc; some toggle options might interfer ($options->{limit_rate} ? ("--limit-rate", $options->{limit_rate}) : ()), ($options->{proxy} ? set_proxy({ type => "curl", proxy => $options->{proxy} }) : ()), ($options->{retry} ? ('--retry', $options->{retry}) : ()), @@ -362,6 +363,7 @@ sub sync_curl { my @l = (@ftp_files, @other_files); my ($buf, $file); $buf = ''; my $curl_pid = open my $curl, join(" ", map { "'$_'" } "/usr/bin/curl", + "-q", # don't read .curlrc; some toggle options might interfer ($options->{limit_rate} ? ("--limit-rate", $options->{limit_rate}) : ()), ($options->{resume} ? ("--continue-at", "-") : ()), ($options->{proxy} ? set_proxy({ type => "curl", proxy => $options->{proxy} }) : ()), -- cgit v1.2.1