From c650fc061ae3ecb1a2e323fdcffe44f2e3ee5245 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 3 Sep 2008 15:19:40 +0000 Subject: be more tolerant in deprecated urpm::download::sync() (since it's easy to be so) --- urpm/download.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'urpm') diff --git a/urpm/download.pm b/urpm/download.pm index 5389e484..ca4ff327 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -802,8 +802,7 @@ sub sync { if ($medium) { _sync_raw($urpm, $medium, $files, %options); } else { - @$files == 1 or die "urpm::download::sync() can only download one url when medium is undef\n"; - sync_url($urpm, $files->[0], %options); + sync_url($urpm, $_, %options) foreach @$files; } } -- cgit v1.2.1