diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-03 15:19:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-03 15:19:40 +0000 |
commit | c650fc061ae3ecb1a2e323fdcffe44f2e3ee5245 (patch) | |
tree | 4a1908f0adfd9a26ce1a89bbce2dc5f4c83e62ea /urpm | |
parent | e9249b97b8af7e91c1d69377bb8eb673a3b84458 (diff) | |
download | urpmi-c650fc061ae3ecb1a2e323fdcffe44f2e3ee5245.tar urpmi-c650fc061ae3ecb1a2e323fdcffe44f2e3ee5245.tar.gz urpmi-c650fc061ae3ecb1a2e323fdcffe44f2e3ee5245.tar.bz2 urpmi-c650fc061ae3ecb1a2e323fdcffe44f2e3ee5245.tar.xz urpmi-c650fc061ae3ecb1a2e323fdcffe44f2e3ee5245.zip |
be more tolerant in deprecated urpm::download::sync()
(since it's easy to be so)
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/download.pm | 3 |
1 files changed, 1 insertions, 2 deletions
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; } } |