diff options
-rw-r--r-- | urpm/download.pm | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index e84b7aa9..5d6a9305 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -783,7 +783,15 @@ sub sync_rel { my ($urpm, $medium, $rel_files, %options) = @_; my @files = map { reduce_pathname("$medium->{url}/$_") } @$rel_files; - _sync_raw($urpm, $medium, \@files, %options); + + my $files_text = join(' ', map { url_obscuring_password($_) } @files); + $urpm->{debug} and $urpm->{debug}(N("retrieving %s", $files_text)); + + eval { + _sync_webfetch_raw($urpm, $medium, \@files, _all_options($urpm, $medium, \%options)); + $urpm->{log}(N("retrieved %s", $files_text)); + 1; + }; } sub sync_url { @@ -805,19 +813,6 @@ sub sync { sync_url($urpm, $_, %options) foreach @$files; } -sub _sync_raw { - my ($urpm, $medium, $files, %options) = @_; - - my $files_text = join(' ', map { url_obscuring_password($_) } @$files); - $urpm->{debug} and $urpm->{debug}(N("retrieving %s", $files_text)); - - eval { - _sync_webfetch_raw($urpm, $medium, $files, _all_options($urpm, $medium, \%options)); - $urpm->{log}(N("retrieved %s", $files_text)); - 1; - }; -} - sub get_content { my ($urpm, $url) = @_; |