summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-14 11:13:35 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-14 11:13:35 +0000
commit2b5c33d603e465d9545d03228d5fe79b4085e267 (patch)
tree67aaab22a4821126ec28c80ce38db245e24c3960 /urpm.pm
parent6be8fd1e388fa4666c3dbd8f821239b106079846 (diff)
downloadurpmi-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.pm6
1 files changed, 5 insertions, 1 deletions
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') {