summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-03 15:19:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-03 15:19:40 +0000
commitc650fc061ae3ecb1a2e323fdcffe44f2e3ee5245 (patch)
tree4a1908f0adfd9a26ce1a89bbce2dc5f4c83e62ea
parente9249b97b8af7e91c1d69377bb8eb673a3b84458 (diff)
downloadurpmi-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)
-rw-r--r--urpm/download.pm3
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;
}
}