summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-20 18:12:00 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-20 18:12:00 +0000
commite493f58493e326b9f33b6e3a512e9098d9922710 (patch)
tree785ecd6ae45fec12776d78976238ccb5bbc47050
parentdfdf806fffede8afc112e1a6f1ff6130b9feb238 (diff)
downloadurpmi-e493f58493e326b9f33b6e3a512e9098d9922710.tar
urpmi-e493f58493e326b9f33b6e3a512e9098d9922710.tar.gz
urpmi-e493f58493e326b9f33b6e3a512e9098d9922710.tar.bz2
urpmi-e493f58493e326b9f33b6e3a512e9098d9922710.tar.xz
urpmi-e493f58493e326b9f33b6e3a512e9098d9922710.zip
Better alignment of progress bars. Remove incorrect total count.
-rw-r--r--urpm.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/urpm.pm b/urpm.pm
index b9262b0c..3545612d 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2898,10 +2898,6 @@ sub install_logger {
my ($urpm, $type, $id, $subtype, $amount, $total) = @_;
my $pkg = defined $id && $urpm->{depslist}[$id];
my $total_pkg = $urpm->{nb_install};
- if ($urpm->{options}{repackage} || URPM::expand('%_repackage_all_erasures')) {
- # there are repackaging transactions too
- $total_pkg *= 2;
- }
my $progress_size = 45;
if ($subtype eq 'start') {
@@ -2909,7 +2905,7 @@ sub install_logger {
if ($type eq 'trans') {
$urpm->{logger_id} ||= 0;
$urpm->{logger_count} ||= 0;
- printf("%-28s", N("Preparing..."));
+ printf("%-33s", N("Preparing..."));
} else {
++$urpm->{logger_id};
my $pname = $pkg ? $pkg->name : '';