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, 2 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 180a098b..a93ea71c 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -802,7 +802,8 @@ sub sync {
if ($medium) {
$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;
+ sync_url($urpm, $_, %options) or return foreach @$files;
+ 1;
}
sub get_content {