diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-08-31 16:45:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-08-31 16:45:13 +0000 |
commit | 3cd85172bf689b679e8c1fc626690ba87b136d74 (patch) | |
tree | d73d48ff546eb7f1667b7f179ad031c326354753 /urpm/download.pm | |
parent | 9dadc64a5547524da5fcbe188b2d443709f627f0 (diff) | |
download | urpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.tar urpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.tar.gz urpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.tar.bz2 urpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.tar.xz urpmi-3cd85172bf689b679e8c1fc626690ba87b136d74.zip |
document some functions
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index a493bde3..9cc6f555 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -35,6 +35,8 @@ urpm::download - download routines for the urpm* tools =head1 DESCRIPTION +=over + =cut @@ -842,6 +844,12 @@ sub sync_logger { } } +=item requested_ftp_http_downloader($urpm, $medium) + +Return the downloader program to use (whether it pas provided on the +command line or in the config file). + +=cut sub requested_ftp_http_downloader { my ($urpm, $medium) = @_; @@ -917,6 +925,12 @@ sub sync_rel_one { $files->[0]; } +=item sync_url($urpm, $url, %options) + +Retrieve a file from the network and return the local cached file path. + +=cut + sub sync_url { my ($urpm, $url, %options) = @_; sync_rel_one($urpm, { url => dirname($url), disable_metalink => $options{disable_metalink} }, basename($url), %options); @@ -945,6 +959,13 @@ sub sync { 1; } + +=item get_content($urpm, $url, %o_options) + +Retrieve a file and return its content. + +=cut + sub get_content { my ($urpm, $url, %o_options) = @_; @@ -1069,6 +1090,8 @@ sub _create_metalink_ { __END__ +=back + =head1 COPYRIGHT Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 MandrakeSoft SA |