From d7e4d767d63e639b05803ece1c2e2316ed8f2b03 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 5 Sep 2003 11:04:33 +0000 Subject: - use new urpmi API to verify signatures, so that we don't miss signatures problems when key of package is not in urpmi allowed pool - convert to utf8 when asking translations to urpmi --- rpmdrake.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'rpmdrake.pm') diff --git a/rpmdrake.pm b/rpmdrake.pm index 7888cac8..3c7c81e3 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -38,7 +38,7 @@ use curl_download; @ISA = qw(Exporter); @EXPORT = qw($configfile %config $mandrakeupdate_wanted_categories $already_splashed $max_info_in_descr $typical_width - N translate myexit readconf writeconf interactive_msg interactive_packtable interactive_list fatal_msg + N translate to_utf8 myexit readconf writeconf interactive_msg interactive_packtable interactive_list fatal_msg wait_msg remove_wait_msg but but_ slow_func mirrors choose_mirror make_url_mirror show_urpm_progress update_sources update_sources_interactive add_medium_and_check); @@ -71,6 +71,14 @@ sub N { my $s = shift @_; my $t = translate($s); sprintf_fixutf8 $t, @_; } +sub to_utf8 { + foreach (@_) { + $_ = Locale::gettext::iconv($_, undef, "UTF-8"); + c::set_tagged_utf8($_); + } + @_; +} + sub myexit { ugtk2::exit(undef, @_) } $ENV{HOME} ||= '/root'; -- cgit v1.2.1