diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 15:53:01 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 15:53:01 +0000 |
commit | 65e9c38d45f493187a15394b61aa41377aa0de5f (patch) | |
tree | 488aad3a9860ca804f13706d2a4c25297705c1ba /urpm/download.pm | |
parent | 8e87e794d346a87afb8ed3ea008f95fd17add726 (diff) | |
download | urpmi-65e9c38d45f493187a15394b61aa41377aa0de5f.tar urpmi-65e9c38d45f493187a15394b61aa41377aa0de5f.tar.gz urpmi-65e9c38d45f493187a15394b61aa41377aa0de5f.tar.bz2 urpmi-65e9c38d45f493187a15394b61aa41377aa0de5f.tar.xz urpmi-65e9c38d45f493187a15394b61aa41377aa0de5f.zip |
use standard Exporter
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index 7655c141..f860064f 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -7,6 +7,14 @@ use urpm::msg; use urpm::cfg; use urpm::util; use Cwd; +use Exporter; + +our @ISA = 'Exporter'; +our @EXPORT = qw(get_proxy + propagate_sync_callback + sync_file sync_wget sync_curl sync_rsync sync_ssh + set_proxy_config dump_proxy_config +); (our $VERSION) = q($Revision$) =~ /(\d+)/; @@ -17,18 +25,6 @@ my $proxy_config; #- Timeout for curl connection and wget operations our $CONNECT_TIMEOUT = 60; #- (in seconds) -sub import () { - my $c = caller; - no strict 'refs'; - foreach my $symbol (qw(get_proxy - propagate_sync_callback - sync_file sync_wget sync_curl sync_rsync sync_ssh - set_proxy_config dump_proxy_config - )) { - *{$c . '::' . $symbol} = *$symbol; - } -} - #- parses proxy.cfg (private) sub load_proxy_config () { return if defined $proxy_config; |