summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-03 15:21:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-03 15:21:38 +0000
commit5d953ed0d8f61343940d410c4bb2cdfd17278fa3 (patch)
tree987f425a224da6645ed7c5a538ad442916746bc1 /urpm/download.pm
parentc650fc061ae3ecb1a2e323fdcffe44f2e3ee5245 (diff)
downloadurpmi-5d953ed0d8f61343940d410c4bb2cdfd17278fa3.tar
urpmi-5d953ed0d8f61343940d410c4bb2cdfd17278fa3.tar.gz
urpmi-5d953ed0d8f61343940d410c4bb2cdfd17278fa3.tar.bz2
urpmi-5d953ed0d8f61343940d410c4bb2cdfd17278fa3.tar.xz
urpmi-5d953ed0d8f61343940d410c4bb2cdfd17278fa3.zip
ensure _sync_raw() is only called through sync_rel()
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index ca4ff327..e84b7aa9 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -800,10 +800,9 @@ sub sync {
my ($urpm, $medium, $files, %options) = @_;
if ($medium) {
- _sync_raw($urpm, $medium, $files, %options);
- } else {
- sync_url($urpm, $_, %options) foreach @$files;
+ $urpm->{error}("deprecated urpm::download::sync() called with a medium, this is not handled anymore, not using the medium and only taking the protocol into account");
}
+ sync_url($urpm, $_, %options) foreach @$files;
}
sub _sync_raw {