summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-03 14:55:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-03 14:55:27 +0000
commit33a29dbe9e890887a7aaaea5ee9b892c6a6b6402 (patch)
tree28e44734429dcd27f95720e062b935fc2d9b1374
parenta0b4576d2bed2e7aeb06f972c7b1faf1d0a4c577 (diff)
downloadurpmi-33a29dbe9e890887a7aaaea5ee9b892c6a6b6402.tar
urpmi-33a29dbe9e890887a7aaaea5ee9b892c6a6b6402.tar.gz
urpmi-33a29dbe9e890887a7aaaea5ee9b892c6a6b6402.tar.bz2
urpmi-33a29dbe9e890887a7aaaea5ee9b892c6a6b6402.tar.xz
urpmi-33a29dbe9e890887a7aaaea5ee9b892c6a6b6402.zip
deprecate urpm::download::sync() in favor of sync_url() and sync_rel()
-rw-r--r--urpm/download.pm7
1 files changed, 7 insertions, 0 deletions
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));