diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-13 15:33:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-13 15:33:34 +0000 |
commit | 7dc13bb0f539e28b4ccccd23b86492dc76309596 (patch) | |
tree | 9472cc381fd96b25d2edcea499b6689a7be4f006 | |
parent | 56fe1e520a671c8ed8178cb601ce8d7634f92b90 (diff) | |
download | rpmdrake-7dc13bb0f539e28b4ccccd23b86492dc76309596.tar rpmdrake-7dc13bb0f539e28b4ccccd23b86492dc76309596.tar.gz rpmdrake-7dc13bb0f539e28b4ccccd23b86492dc76309596.tar.bz2 rpmdrake-7dc13bb0f539e28b4ccccd23b86492dc76309596.tar.xz rpmdrake-7dc13bb0f539e28b4ccccd23b86492dc76309596.zip |
instead of workarounding issues of Locale::gettext used in urpmi everywhere
(with the chance of missing some code paths), let's workaround this issue once
and forever (#25130)
-rwxr-xr-x | rpmdrake | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -76,6 +76,8 @@ if ($collation_locale) { $collation_locale =~ /UTF-8/ or setlocale(LC_COLLATE, "$collation_locale.UTF-8"); } +*urpm::msg::translate = \&common::translate; + our %options; foreach (@ARGV) { /^-?-(\S+)$/ or next; @@ -1923,7 +1925,7 @@ Is it ok to continue?", join("\n\n", $r, if_($to_install, $to_install)))) : $to_ gurpm::label(N("Verifying package signatures...")); my $total = @rpms_install + @rpms_upgrade; my $progress; - my @invalid_sources = map { c::set_tagged_utf8($_); $_ } $urpm->check_sources_signatures( + my @invalid_sources = $urpm->check_sources_signatures( \%sources_install, \%sources, translate => 1, basename => 1, callback => sub { @@ -1955,7 +1957,7 @@ Is it ok to continue?", join("\n\n", $r, if_($to_install, $to_install)))) : $to_ my $something_installed; my $callback_inst = sub { my ($urpm, $type, $id, $subtype, $amount, $total) = @_; - my $pkg = defined $id && $urpm->{depslist}[$id]; + my $pkg = defined $id ? $urpm->{depslist}[$id] : undef; if ($subtype eq 'start') { if ($type eq 'trans') { gurpm::label(@rpms_install ? N("Preparing packages installation...") : N("Preparing...")); |