summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-08-31 15:58:27 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-08-31 15:58:27 +0000
commita5f6166ab0a39fb062bcafdaf8b8348314f613b4 (patch)
tree069988510955e7e6682e1e0c3e656959b71655d6 /urpm
parent14b2822e5b51df2dbe8726f783cf463e5a298268 (diff)
downloadurpmi-a5f6166ab0a39fb062bcafdaf8b8348314f613b4.tar
urpmi-a5f6166ab0a39fb062bcafdaf8b8348314f613b4.tar.gz
urpmi-a5f6166ab0a39fb062bcafdaf8b8348314f613b4.tar.bz2
urpmi-a5f6166ab0a39fb062bcafdaf8b8348314f613b4.tar.xz
urpmi-a5f6166ab0a39fb062bcafdaf8b8348314f613b4.zip
download: allow callee of get_content to pass downloader options
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 829e3b2c..39d63a02 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -921,9 +921,9 @@ sub sync {
}
sub get_content {
- my ($urpm, $url) = @_;
+ my ($urpm, $url, %o_options) = @_;
- my $file = sync_url($urpm, $url, quiet => 1, preclean => 1) or return;
+ my $file = sync_url($urpm, $url, %o_options, quiet => 1, preclean => 1) or return;
my @l = cat_($file);
unlink $file;