From a8e5b2a614ff0f0be437f5056a8c54e9644857cf Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 20 Mar 2006 18:00:53 +0000 Subject: Remove dead branch --- urpm.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'urpm.pm') 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) { -- cgit v1.2.1