From 2b5c33d603e465d9545d03228d5fe79b4085e267 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 14 Feb 2006 11:13:35 +0000 Subject: Adjust transaction count when repackaging --- urpm.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/urpm.pm b/urpm.pm index d2ef7fa4..476cf9cc 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2887,11 +2887,15 @@ sub extract_packages_to_install { \%inst; } -#- install logger (ala rpm) +#- install logger (à la rpm) 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 = $total_pkg ? 45 : 50; if ($subtype eq 'start') { -- cgit v1.2.1