From 653f8b50ff822e3865848c1a98a3900890cb337d Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 28 Apr 2004 13:38:12 +0000 Subject: Fix interactive mode in urpme --- urpm/msg.pm | 4 ++-- 1 file 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"; -- cgit v1.2.1