diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-14 11:13:35 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-14 11:13:35 +0000 |
commit | 2b5c33d603e465d9545d03228d5fe79b4085e267 (patch) | |
tree | 67aaab22a4821126ec28c80ce38db245e24c3960 /urpm.pm | |
parent | 6be8fd1e388fa4666c3dbd8f821239b106079846 (diff) | |
download | urpmi-2b5c33d603e465d9545d03228d5fe79b4085e267.tar urpmi-2b5c33d603e465d9545d03228d5fe79b4085e267.tar.gz urpmi-2b5c33d603e465d9545d03228d5fe79b4085e267.tar.bz2 urpmi-2b5c33d603e465d9545d03228d5fe79b4085e267.tar.xz urpmi-2b5c33d603e465d9545d03228d5fe79b4085e267.zip |
Adjust transaction count when repackaging
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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') { |