summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-20 18:00:53 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-20 18:00:53 +0000
commita8e5b2a614ff0f0be437f5056a8c54e9644857cf (patch)
treef59526e119eb692fba674ad4126bc5cbe6b62c46 /urpm.pm
parentedf5a3bbff958814e29df78f755390cfa7e2db40 (diff)
downloadurpmi-a8e5b2a614ff0f0be437f5056a8c54e9644857cf.tar
urpmi-a8e5b2a614ff0f0be437f5056a8c54e9644857cf.tar.gz
urpmi-a8e5b2a614ff0f0be437f5056a8c54e9644857cf.tar.bz2
urpmi-a8e5b2a614ff0f0be437f5056a8c54e9644857cf.tar.xz
urpmi-a8e5b2a614ff0f0be437f5056a8c54e9644857cf.zip
Remove dead branch
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm10
1 files changed, 3 insertions, 7 deletions
diff --git a/urpm.pm b/urpm.pm
index 328ac985..7cd0a631 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2902,19 +2902,15 @@ sub install_logger {
# there are repackaging transactions too
$total_pkg *= 2;
}
- my $progress_size = $total_pkg ? 45 : 50;
+ my $progress_size = 45;
if ($subtype eq 'start') {
$urpm->{logger_progress} = 0;
if ($type eq 'trans') {
$urpm->{logger_id} ||= 0;
- printf($total_pkg ? "%-33s" : "%-28s", N("Preparing..."));
+ printf("%-28s", N("Preparing..."));
} else {
- if ($total_pkg) {
- printf "%9s: %-22s", (++$urpm->{logger_id}) . "/" . $total_pkg, ($pkg && $pkg->name);
- } else {
- printf "%4d: %-22s", ++$urpm->{logger_id}, ($pkg && $pkg->name);
- }
+ printf "%9s: %-22s", (++$urpm->{logger_id}) . "/" . $total_pkg, ($pkg && $pkg->name);
}
} elsif ($subtype eq 'stop') {
if ($urpm->{logger_progress} < $progress_size) {