summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-01 13:53:26 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-01 13:53:26 +0000
commit5e57870e9dbe0dcf803e421439ea4101822dd975 (patch)
tree084b6a7d39d1c6efa9c1251d8eb5ca0b04a217ce
parent6b0cb86cdbeda58f178ba192f859524c172e61e1 (diff)
downloadurpmi-5e57870e9dbe0dcf803e421439ea4101822dd975.tar
urpmi-5e57870e9dbe0dcf803e421439ea4101822dd975.tar.gz
urpmi-5e57870e9dbe0dcf803e421439ea4101822dd975.tar.bz2
urpmi-5e57870e9dbe0dcf803e421439ea4101822dd975.tar.xz
urpmi-5e57870e9dbe0dcf803e421439ea4101822dd975.zip
Change the default log function to output to STDOUT, not STDERR.
(bug 13037)
-rw-r--r--urpm.pm2
-rwxr-xr-xurpmi2
2 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index bc22ac48..3edda0c8 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -67,7 +67,7 @@ sub new {
sync => sub { $self->sync_webfetch(@_) },
fatal => sub { printf STDERR "%s\n", $_[1]; exit($_[0]) },
error => sub { printf STDERR "%s\n", $_[0] },
- log => sub { printf STDERR "%s\n", $_[0] },
+ log => sub { printf "%s\n", $_[0] },
ui_msg => sub {
$self->{log}($_[0]);
ref $self->{ui} && ref $self->{ui}{msg} and $self->{ui}{msg}->($_[1]);
diff --git a/urpmi b/urpmi
index 69e4cf57..6ccf9ebe 100755
--- a/urpmi
+++ b/urpmi
@@ -259,7 +259,7 @@ select STDOUT; $| = 1;
unless ($bug) {
$urpm->{fatal} = sub { printf SAVEERR "%s\n", $_[1]; exit($_[0]) };
$urpm->{error} = sub { printf SAVEERR "%s\n", $_[0] };
- $urpm->{log} = sub { printf SAVEERR "%s\n", $_[0] };
+ $urpm->{log} = sub { printf SAVEOUT "%s\n", $_[0] };
}
$verbose > 0 or $urpm->{log} = sub {};