aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-04 07:22:36 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-04 07:22:36 +0000
commitba005fada8e447ec26e7cd30f6c994d1254436b8 (patch)
tree45cfe0dd79aeaff2773c1c071a594bea06c3352a /rpmdrake.pm
parent89a475b4253fb07d65e5694fe3ce4f54aa024dcc (diff)
downloadrpmdrake-ba005fada8e447ec26e7cd30f6c994d1254436b8.tar
rpmdrake-ba005fada8e447ec26e7cd30f6c994d1254436b8.tar.gz
rpmdrake-ba005fada8e447ec26e7cd30f6c994d1254436b8.tar.bz2
rpmdrake-ba005fada8e447ec26e7cd30f6c994d1254436b8.tar.xz
rpmdrake-ba005fada8e447ec26e7cd30f6c994d1254436b8.zip
Don't UTF-8 encode error messages twice.
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index e7366ca1..b333d1e6 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -535,8 +535,8 @@ later.",
sub update_sources_check {
my ($urpm, $options, $error_msg, @media) = @_;
my @error_msgs;
- local $urpm->{fatal} = sub { push @error_msgs, to_utf8($_[1]); goto fatal_error };
- local $urpm->{error} = sub { push @error_msgs, to_utf8($_[0]) };
+ local $urpm->{fatal} = sub { push @error_msgs, $_[1]; goto fatal_error };
+ local $urpm->{error} = sub { push @error_msgs, $_[0] };
update_sources($urpm, %$options, noclean => 1, medialist => \@media);
fatal_error:
if (@error_msgs) {