diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-08-31 15:58:27 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-08-31 15:58:27 +0000 |
commit | a5f6166ab0a39fb062bcafdaf8b8348314f613b4 (patch) | |
tree | 069988510955e7e6682e1e0c3e656959b71655d6 /urpm/download.pm | |
parent | 14b2822e5b51df2dbe8726f783cf463e5a298268 (diff) | |
download | urpmi-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/download.pm')
-rw-r--r-- | urpm/download.pm | 4 |
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; |