From 6ffd2ff6b392f6930ee580c2984f56cdaa5f0e59 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 21 Oct 2008 15:54:48 +0000 Subject: fix previous commit: we must not generated a 'start' event when we are done with the list of files to download --- urpm/download.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urpm/download.pm b/urpm/download.pm index c59248c4..c7de59db 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -700,7 +700,7 @@ sub _parse_aria2_output { if ($_ eq "\r" || $_ eq "\n") { $options->{debug}("aria2c: $buf") if $options->{debug}; if ($options->{callback}) { - if (!defined($file)) { + if (!defined($file) && @$rel_files) { $file = $medium->{mirrorlist} ? $medium->{mirrorlist} . ': ' . $medium->{'with-dir'} . "/$rel_files->[0]" : "$medium->{url}/$rel_files->[0]"; -- cgit v1.2.1