summaryrefslogtreecommitdiffstats
path: root/urpm/msg.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-08 15:11:47 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-08 15:11:47 +0000
commit1015446c571e56ec6a5b0f1aae497cbcf3fe6ef9 (patch)
treeab35b78e5311c609d715f559d55bc3410d403bc3 /urpm/msg.pm
parente5172c4bcf96785aaae10fbc69d5407599f2a718 (diff)
downloadurpmi-1015446c571e56ec6a5b0f1aae497cbcf3fe6ef9.tar
urpmi-1015446c571e56ec6a5b0f1aae497cbcf3fe6ef9.tar.gz
urpmi-1015446c571e56ec6a5b0f1aae497cbcf3fe6ef9.tar.bz2
urpmi-1015446c571e56ec6a5b0f1aae497cbcf3fe6ef9.tar.xz
urpmi-1015446c571e56ec6a5b0f1aae497cbcf3fe6ef9.zip
Get rid of message() function
Diffstat (limited to 'urpm/msg.pm')
-rw-r--r--urpm/msg.pm15
1 files changed, 3 insertions, 12 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm
index 5d633ace..e46638b0 100644
--- a/urpm/msg.pm
+++ b/urpm/msg.pm
@@ -7,7 +7,7 @@ use Exporter;
(our $VERSION) = q$Id$ =~ /(\d+\.\d+)/;
our @ISA = 'Exporter';
-our @EXPORT = qw(N bug_log to_utf8 message_input message toMb from_utf8 sys_log);
+our @EXPORT = qw(N bug_log to_utf8 message_input toMb from_utf8 sys_log);
#- I18N.
use Locale::gettext;
@@ -93,20 +93,11 @@ sub message_input {
} else {
last;
}
- message(N("Sorry, bad choice, try again\n"));
+ print N("Sorry, bad choice, try again\n");
}
return $input;
}
-sub message {
- my ($msg) = @_;
- if ($urpm::args::options{bug} || !defined fileno ::SAVEOUT) {
- print STDOUT "$msg\n";
- } else {
- print ::SAVEOUT "$msg\n";
- }
-}
-
sub toMb {
my $nb = $_[0] / 1024 / 1024;
int $nb + 0.5;
@@ -130,6 +121,6 @@ urpm::msg - routines to prompt messages from the urpm* tools
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 MandrakeSoft SA
-Copyright (C) 2005 Mandriva SA
+Copyright (C) 2005, 2006 Mandriva SA
=cut