summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/msg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm
index d913b233..b8e4ae03 100644
--- a/urpm/msg.pm
+++ b/urpm/msg.pm
@@ -58,7 +58,7 @@ sub message_input {
$urpm::args::options{bug} and log_it($msg);
} else {
while (1) {
- if ($urpm::args::options{bug}) {
+ if ($urpm::args::options{bug} || !defined fileno ::SAVEOUT) {
print STDOUT $msg;
} else {
print ::SAVEOUT $msg;
@@ -89,7 +89,7 @@ sub message {
gmessage($msg, ok_only => 1);
$urpm::args::options{bug} and log_it($msg);
} else {
- if ($urpm::args::options{bug}) {
+ if ($urpm::args::options{bug} || !defined fileno ::SAVEOUT) {
print STDOUT "$msg\n";
} else {
print ::SAVEOUT "$msg\n";