diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-03-21 17:12:31 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-03-21 17:12:31 +0000 |
commit | e87bd3a7e7a00df990cce06e6f43badbc3442f55 (patch) | |
tree | ec005f1e85d896b2db80268871520db80e3bab44 /grpmi/curl_download/curl_download.pm | |
parent | c6d3e2c946d7feccb06059592e0223405ae778db (diff) | |
download | rpmdrake-e87bd3a7e7a00df990cce06e6f43badbc3442f55.tar rpmdrake-e87bd3a7e7a00df990cce06e6f43badbc3442f55.tar.gz rpmdrake-e87bd3a7e7a00df990cce06e6f43badbc3442f55.tar.bz2 rpmdrake-e87bd3a7e7a00df990cce06e6f43badbc3442f55.tar.xz rpmdrake-e87bd3a7e7a00df990cce06e6f43badbc3442f55.zip |
merge curl_download into Rpmdrake::edit_urpm_sources
rationale:
- it's its only user
- it has nothing to do with curl since 2008
(and old XS curl code wasn't used anymore since 2003-05-12 when gurpm*
stuff was merged in urpmi/gurpm*, grpmi/grpm.pl itself being killed on
2004-01-21)
- gc was lazy
Diffstat (limited to 'grpmi/curl_download/curl_download.pm')
-rw-r--r-- | grpmi/curl_download/curl_download.pm | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/grpmi/curl_download/curl_download.pm b/grpmi/curl_download/curl_download.pm deleted file mode 100644 index 034df5f6..00000000 --- a/grpmi/curl_download/curl_download.pm +++ /dev/null @@ -1,24 +0,0 @@ -package curl_download; - -use strict; -use urpm::download; - -our $VERSION = '1.2'; - -sub readproxy (;$) { - my $proxy = get_proxy($_[0]); - ($proxy->{http_proxy} || $proxy->{ftp_proxy} || '', - defined $proxy->{user} ? "$proxy->{user}:$proxy->{pwd}" : ''); -} - -sub writeproxy { - my ($proxy, $proxy_user, $o_media_name) = @_; - my ($user, $pwd) = split /:/, $proxy_user; - 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); - set_proxy_config(ftp_proxy => $proxy, $o_media_name); - dump_proxy_config(); -} - -1; |