From 5d953ed0d8f61343940d410c4bb2cdfd17278fa3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 3 Sep 2008 15:21:38 +0000 Subject: ensure _sync_raw() is only called through sync_rel() --- urpm/download.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'urpm') 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 { -- cgit v1.2.1