summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm23
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