From 33a29dbe9e890887a7aaaea5ee9b892c6a6b6402 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 3 Sep 2008 14:55:27 +0000 Subject: deprecate urpm::download::sync() in favor of sync_url() and sync_rel() --- urpm/download.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'urpm') diff --git a/urpm/download.pm b/urpm/download.pm index 2499ace8..9c292b23 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -792,10 +792,17 @@ sub sync_url { sync($urpm, undef, [$url], %options); } +#- deprecated, use sync_url() or sync_rel() instead +#- #- $medium can be undef #- known options: quiet, resume, callback sub sync { my ($urpm, $medium, $files, %options) = @_; + _sync_raw($urpm, $medium, $files, %options); +} + +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)); -- cgit v1.2.1