From e0d7d487ebd2e8b63fbde64b79058856b5082a42 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 14 Jun 2004 08:40:47 +0000 Subject: Fix bug #10026: when using --wget, urpmi displays only the first downloaded url. --- urpm/download.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'urpm') 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 = ''; -- cgit v1.2.1