aboutsummaryrefslogtreecommitdiffstats
path: root/grpmi
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-01 07:18:30 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-01 07:18:30 +0000
commit0f8a019a045eedcbe204c510bd1ab28d1ee9f771 (patch)
treee67ac23200cc637b3cdbd3387a779d2c2caefb99 /grpmi
parente485e3fb1721dd541dba342342ec41b47e5573b0 (diff)
downloadrpmdrake-0f8a019a045eedcbe204c510bd1ab28d1ee9f771.tar
rpmdrake-0f8a019a045eedcbe204c510bd1ab28d1ee9f771.tar.gz
rpmdrake-0f8a019a045eedcbe204c510bd1ab28d1ee9f771.tar.bz2
rpmdrake-0f8a019a045eedcbe204c510bd1ab28d1ee9f771.tar.xz
rpmdrake-0f8a019a045eedcbe204c510bd1ab28d1ee9f771.zip
Ability to set a proxy for only one media in the software media manager
Diffstat (limited to 'grpmi')
-rw-r--r--grpmi/curl_download/curl_download.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/grpmi/curl_download/curl_download.pm b/grpmi/curl_download/curl_download.pm
index e8583d03..ee887514 100644
--- a/grpmi/curl_download/curl_download.pm
+++ b/grpmi/curl_download/curl_download.pm
@@ -13,17 +13,17 @@ our $VERSION = '1.1';
bootstrap curl_download $VERSION;
sub readproxy (;$) {
- my $proxy = get_proxy(@_);
+ my $proxy = get_proxy($_[0]);
($proxy->{http_proxy} || $proxy->{ftp_proxy} || '',
defined $proxy->{user} ? "$proxy->{user}:$proxy->{pwd}" : '');
}
sub writeproxy {
- my ($proxy, $proxy_user) = @_;
+ my ($proxy, $proxy_user, $o_media_name) = @_;
my ($user, $pwd) = split /:/, $proxy_user;
- set_proxy_config(user => $user);
- set_proxy_config(pwd => $pwd);
- set_proxy_config(http_proxy => $proxy);
+ set_proxy_config(user => $user, $o_media_name);
+ set_proxy_config(pwd => $pwd, $o_media_name);
+ set_proxy_config(http_proxy => $proxy, $o_media_name);
dump_proxy_config();
}