summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-11-14 07:47:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-11-14 07:47:25 +0000
commita2639fe5c8dd4d114a1c3ffd55516bb06d437f98 (patch)
treeb9cfc2a07d3b846b8f282202e6db5f6b355f7331 /urpm/media.pm
parent7a44279bdc2a483817bac1900cebd6c960a211d6 (diff)
downloadurpmi-a2639fe5c8dd4d114a1c3ffd55516bb06d437f98.tar
urpmi-a2639fe5c8dd4d114a1c3ffd55516bb06d437f98.tar.gz
urpmi-a2639fe5c8dd4d114a1c3ffd55516bb06d437f98.tar.bz2
urpmi-a2639fe5c8dd4d114a1c3ffd55516bb06d437f98.tar.xz
urpmi-a2639fe5c8dd4d114a1c3ffd55516bb06d437f98.zip
use callback for progression of download when using "xml-info: always"
Diffstat (limited to 'urpm/media.pm')
-rw-r--r--urpm/media.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index ee7d64cb..9bf6ef09 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1746,7 +1746,7 @@ sub _retrieve_media_info_file_and_check_MD5SUM {
my $cachedir_file =
is_local_medium($medium) ?
_copy_media_info_file($urpm, $medium, $prefix, $suffix) :
- _download_media_info_file($urpm, $medium, $prefix, $suffix, { quiet => $quiet }) or
+ _download_media_info_file($urpm, $medium, $prefix, $suffix, { quiet => $quiet, callback => \&urpm::download::sync_logger }) or
$urpm->{error}(N("retrieval of [%s] failed", _synthesis_dir($medium) . "/$name")), return;
my $wanted_md5sum = urpm::md5sum::from_MD5SUM__or_warn($urpm, $medium->{parsed_md5sum}, $name);