diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-01-30 17:40:04 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-01-30 17:40:04 +0000 |
commit | a9bb6f13e1d4cae01a9a70c48535d4b754929d11 (patch) | |
tree | 9658f934b1ca24b268786f9a8f1bf34379c7a00f | |
parent | a7a87957a0a44c3ed2137f60e88601b840b66e5c (diff) | |
download | rpmdrake-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-x | rpmdrake | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |