summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-05 09:56:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-05 09:56:26 +0000
commitf7ac67267e81f205020082d28b1cb3e4c971adf0 (patch)
tree1f10fe99400caacdb4df7b06444b8fc058a91aac /urpm
parentcfcb9a08dbb72e2fdf020f7d90d586d19c00aead (diff)
downloadurpmi-f7ac67267e81f205020082d28b1cb3e4c971adf0.tar
urpmi-f7ac67267e81f205020082d28b1cb3e4c971adf0.tar.gz
urpmi-f7ac67267e81f205020082d28b1cb3e4c971adf0.tar.bz2
urpmi-f7ac67267e81f205020082d28b1cb3e4c971adf0.tar.xz
urpmi-f7ac67267e81f205020082d28b1cb3e4c971adf0.zip
simplify
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index cec1078e..ae561af3 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -869,9 +869,8 @@ sub _sync_webfetch_raw {
my $sync = $urpm::download::{"sync_$preferred"} or die N("no webfetch found, supported webfetch are: %s\n", join(", ", urpm::download::ftp_http_downloaders()));
if ($options->{metalink}) {
- my $metalink = _create_metalink_($urpm, $medium, $rel_files, $options);
$options->{urls_text} = [ map { $medium->{mirrorlist} . ': ' . $medium->{'with-dir'} . "/$_" } @$rel_files ];
- $sync->($options, $metalink);
+ $sync->($options, _create_metalink_($urpm, $medium, $rel_files, $options));
} else {
my @l = @$files;
while (@l) {