summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-07-23 18:25:42 +0000
committerFrancois Pons <fpons@mandriva.com>2002-07-23 18:25:42 +0000
commitd7a2c64f600aac4c2b504cb12fe00280af58ce53 (patch)
tree15b086b1c69bb47b3710bbdd28c5fe729cfec089 /urpm.pm
parent8598875c5afcaef8d468ec31e3ad99abd081a414 (diff)
downloadurpmi-d7a2c64f600aac4c2b504cb12fe00280af58ce53.tar
urpmi-d7a2c64f600aac4c2b504cb12fe00280af58ce53.tar.gz
urpmi-d7a2c64f600aac4c2b504cb12fe00280af58ce53.tar.bz2
urpmi-d7a2c64f600aac4c2b504cb12fe00280af58ce53.tar.xz
urpmi-d7a2c64f600aac4c2b504cb12fe00280af58ce53.zip
3.9-2mdk
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);
}