summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 4bd6f187..e7a79f9a 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1879,8 +1879,10 @@ sub install {
return fileno F;
};
$options{callback_close} ||= sub { close F };
- $options{callback_inst} ||= \&install_logger;
- $options{callback_trans} ||= \&install_logger;
+ if (keys %$install || keys %$upgrade) {
+ $options{callback_inst} ||= \&install_logger;
+ $options{callback_trans} ||= \&install_logger;
+ }
@l = $trans->run($urpm, %options);
}