summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-04-13 12:02:13 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-04-13 12:02:13 +0000
commit77e89eb74db0d5c4c7bc157351a194f61d945063 (patch)
tree7ec492203db63cedb488e1f47b060edb441e32e9 /urpm.pm
parenta35fdac66ab0505d9422be82e16f53e167b00fe6 (diff)
downloadurpmi-77e89eb74db0d5c4c7bc157351a194f61d945063.tar
urpmi-77e89eb74db0d5c4c7bc157351a194f61d945063.tar.gz
urpmi-77e89eb74db0d5c4c7bc157351a194f61d945063.tar.bz2
urpmi-77e89eb74db0d5c4c7bc157351a194f61d945063.tar.xz
urpmi-77e89eb74db0d5c4c7bc157351a194f61d945063.zip
Fix counter in repackaging progress bars
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 373b5211..d6928322 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2918,8 +2918,9 @@ sub install_logger {
++$urpm->{logger_id};
my $pname = $pkg ? $pkg->name : '';
++$urpm->{logger_count} if $pname;
+ my $cnt = $pname ? $urpm->{logger_count} : '-';
$pname ||= N("[repackaging]");
- printf "%9s: %-22s", $urpm->{logger_count} . "/" . $total_pkg, $pname;
+ printf "%9s: %-22s", $cnt . "/" . $total_pkg, $pname;
}
} elsif ($subtype eq 'stop') {
if ($urpm->{logger_progress} < $progress_size) {