summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-08 15:16:25 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-08 15:16:25 +0000
commitd10a10935e9502e013443a678c361c4bb22eaa25 (patch)
tree429c77f53a58e066793d5e0033fb1d9fcba53fef /urpm
parent1015446c571e56ec6a5b0f1aae497cbcf3fe6ef9 (diff)
downloadurpmi-d10a10935e9502e013443a678c361c4bb22eaa25.tar
urpmi-d10a10935e9502e013443a678c361c4bb22eaa25.tar.gz
urpmi-d10a10935e9502e013443a678c361c4bb22eaa25.tar.bz2
urpmi-d10a10935e9502e013443a678c361c4bb22eaa25.tar.xz
urpmi-d10a10935e9502e013443a678c361c4bb22eaa25.zip
Simplify prompt function
Diffstat (limited to 'urpm')
-rw-r--r--urpm/prompt.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/urpm/prompt.pm b/urpm/prompt.pm
index 246ed818..7ed02a06 100644
--- a/urpm/prompt.pm
+++ b/urpm/prompt.pm
@@ -16,11 +16,7 @@ sub new {
sub write {
my (undef, $msg) = @_;
- if ($urpm::args::options{bug} || !defined fileno ::SAVEOUT) {
- print STDOUT $msg;
- } else {
- print ::SAVEOUT $msg;
- }
+ print STDOUT $msg;
}
sub prompt {
@@ -56,6 +52,6 @@ urpm::prompt - base class to prompt the user for data
Copyright (C) 2005 MandrakeSoft SA
-Copyright (C) 2005 Mandriva SA
+Copyright (C) 2005, 2006 Mandriva SA
=cut