From db03b9af4f0658271f3841eb3273f1447a4f46a9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 31 Aug 2012 16:45:26 +0000 Subject: (do_install_3,sync_logger) make it obvious that parameters do be used --- urpm/download.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm/download.pm') diff --git a/urpm/download.pm b/urpm/download.pm index f56928c6..62a9c5ac 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -843,11 +843,11 @@ Default logger (callback) suitable for sync operation on STDERR only. =cut sub sync_logger { - my ($mode, $file, $percent, $_total, $_eta, $_speed) = @_; + my ($mode, $file, $percent, $total, $eta, $speed) = @_; if ($mode eq 'start') { print STDERR " $file\n"; } elsif ($mode eq 'progress') { - my $text = &progress_text; + my $text = progress_text($mode, $file, $percent, $total, $eta, $speed); if (length($text) > $wchar) { $text = substr($text, 0, $wchar) } if (bytes::length($text) < $wchar) { # clearing more than needed in case the terminal is not handling utf8 and we have a utf8 string -- cgit v1.2.1