summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/urpm.pm b/urpm.pm
index fe26511e..06b2942d 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2856,14 +2856,13 @@ sub install {
} $pkg->files;
close $fh;
};
- $urpm->{nb_install} = scalar keys %$install;
- $urpm->{nb_upgrade} = scalar keys %$upgrade;
- if ($urpm->{nb_install} || $urpm->{nb_upgrade}) {
+ $urpm->{nb_install} += scalar keys %$install;
+ $urpm->{nb_upgrade} += scalar keys %$upgrade;
+ if (scalar keys %$install || scalar keys %$upgrade) {
$options{callback_inst} ||= \&install_logger;
$options{callback_trans} ||= \&install_logger;
}
@l = $trans->run($urpm, %options);
- delete $urpm->{$_} for qw(nb_install nb_upgrade);
#- in case of error or testing, do not try to check rpmdb
#- for packages being upgraded or not.