summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-21 15:54:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-21 15:54:48 +0000
commit6ffd2ff6b392f6930ee580c2984f56cdaa5f0e59 (patch)
tree9afa3d153278078b3ccdc84e3560760fcc3ebba8 /urpm/download.pm
parentb7bc4c01b429c6e39908ad38314bd32875fa2a92 (diff)
downloadurpmi-6ffd2ff6b392f6930ee580c2984f56cdaa5f0e59.tar
urpmi-6ffd2ff6b392f6930ee580c2984f56cdaa5f0e59.tar.gz
urpmi-6ffd2ff6b392f6930ee580c2984f56cdaa5f0e59.tar.bz2
urpmi-6ffd2ff6b392f6930ee580c2984f56cdaa5f0e59.tar.xz
urpmi-6ffd2ff6b392f6930ee580c2984f56cdaa5f0e59.zip
fix previous commit: we must not generated a 'start' event when we are done
with the list of files to download
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm2
1 files changed, 1 insertions, 1 deletions
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]";