From d9181e69c5d65a225ddba5d57d8d67de34e7bb22 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 3 Sep 2008 15:24:57 +0000 Subject: inline _sync_raw() --- urpm/download.pm | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'urpm') 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) = @_; -- cgit v1.2.1