summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
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') {