summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-09 15:24:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-09 15:24:15 +0000
commit3ca6b0f781487ea5fee8cf60a7686cd461e92c06 (patch)
tree109199e63f1422e6c2852b919ec9973005b31b8c
parentc00d5ea2a0bdd61355ada690e1503b73c74840d3 (diff)
downloadurpmi-3ca6b0f781487ea5fee8cf60a7686cd461e92c06.tar
urpmi-3ca6b0f781487ea5fee8cf60a7686cd461e92c06.tar.gz
urpmi-3ca6b0f781487ea5fee8cf60a7686cd461e92c06.tar.bz2
urpmi-3ca6b0f781487ea5fee8cf60a7686cd461e92c06.tar.xz
urpmi-3ca6b0f781487ea5fee8cf60a7686cd461e92c06.zip
- library:
o fix urpm::download::sync() return value (used by rpmdrake) (#43639)
-rw-r--r--NEWS3
-rw-r--r--urpm/download.pm3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 83a8267d..412a26d0 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- library:
+ o fix urpm::download::sync() return value (used by rpmdrake) (#43639)
+
Version 6.9 - 9 September 2008, Pascal "Pixel" Rigaux
- urpmi
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 {