summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-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;
}
}