From f7ac67267e81f205020082d28b1cb3e4c971adf0 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 5 Sep 2008 09:56:26 +0000 Subject: simplify --- urpm/download.pm | 3 +-- 1 file changed, 1 insertion(+), 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) { -- cgit v1.2.1