summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-28 13:38:12 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-28 13:38:12 +0000
commit653f8b50ff822e3865848c1a98a3900890cb337d (patch)
tree2a289e25822b74ee78513057d32bc92be22124c3 /urpm
parent4dfcb842f3e162831b961cd11aada68da9c90123 (diff)
downloadurpmi-653f8b50ff822e3865848c1a98a3900890cb337d.tar
urpmi-653f8b50ff822e3865848c1a98a3900890cb337d.tar.gz
urpmi-653f8b50ff822e3865848c1a98a3900890cb337d.tar.bz2
urpmi-653f8b50ff822e3865848c1a98a3900890cb337d.tar.xz
urpmi-653f8b50ff822e3865848c1a98a3900890cb337d.zip
Fix interactive mode in urpme
Diffstat (limited to 'urpm')
-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";