aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-01-30 17:40:04 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-01-30 17:40:04 +0000
commita9bb6f13e1d4cae01a9a70c48535d4b754929d11 (patch)
tree9658f934b1ca24b268786f9a8f1bf34379c7a00f
parenta7a87957a0a44c3ed2137f60e88601b840b66e5c (diff)
downloadrpmdrake-a9bb6f13e1d4cae01a9a70c48535d4b754929d11.tar
rpmdrake-a9bb6f13e1d4cae01a9a70c48535d4b754929d11.tar.gz
rpmdrake-a9bb6f13e1d4cae01a9a70c48535d4b754929d11.tar.bz2
rpmdrake-a9bb6f13e1d4cae01a9a70c48535d4b754929d11.tar.xz
rpmdrake-a9bb6f13e1d4cae01a9a70c48535d4b754929d11.zip
print fatal/error msgs before to_utf8 because this is not a pure function
-rwxr-xr-xrpmdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index 6f63d2f5..6909e75a 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1099,8 +1099,8 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
my $fatal_msg;
my @error_msgs;
- local $urpm->{fatal} = sub { $fatal_msg = to_utf8($_[1]); printf STDERR "Fatal: %s\n", $_[1]; goto fatal_error };
- local $urpm->{error} = sub { push @error_msgs, to_utf8($_[0]); printf STDERR "Error: %s\n", $_[0] };
+ local $urpm->{fatal} = sub { printf STDERR "Fatal: %s\n", $_[1]; $fatal_msg = to_utf8($_[1]); goto fatal_error };
+ local $urpm->{error} = sub { printf STDERR "Error: %s\n", $_[0]; push @error_msgs, to_utf8($_[0]) };
$w->{rwindow}->set_sensitive(0);