summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-06-14 08:40:47 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-06-14 08:40:47 +0000
commite0d7d487ebd2e8b63fbde64b79058856b5082a42 (patch)
tree5690b675c4893b0c8c4688488bac3696381c0fb2 /urpm
parent37d9b5a1acc82166a6c5e9c1187fb75940e95ed1 (diff)
downloadurpmi-e0d7d487ebd2e8b63fbde64b79058856b5082a42.tar
urpmi-e0d7d487ebd2e8b63fbde64b79058856b5082a42.tar.gz
urpmi-e0d7d487ebd2e8b63fbde64b79058856b5082a42.tar.bz2
urpmi-e0d7d487ebd2e8b63fbde64b79058856b5082a42.tar.xz
urpmi-e0d7d487ebd2e8b63fbde64b79058856b5082a42.zip
Fix bug #10026: when using --wget, urpmi displays only the first
downloaded url.
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 27319bf3..41bfa848 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -127,7 +127,10 @@ sub sync_wget {
if ($_ eq "\r" || $_ eq "\n") {
if ($options->{callback}) {
if ($buf =~ /^--\d\d:\d\d:\d\d--\s+(\S.*)\n/ms) {
- $file && $file ne $1 and propagate_sync_callback($options, 'end', $file);
+ if ($file && $file ne $1) {
+ propagate_sync_callback($options, 'end', $file);
+ undef $file;
+ }
! defined $file and propagate_sync_callback($options, 'start', $file = $1);
} elsif (defined $file && ! defined $total && $buf =~ /==>\s+RETR/) {
$total = '';