aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-10 16:53:02 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-10 16:53:02 +0000
commita29fa866dbb7dfa41a18da4d636639fb39634b72 (patch)
tree6525d6f41575774d8b17e4355c76f6839aa0726c /Rpmdrake
parent9baa2fb0728794eaccc785570fd8a48523e75773 (diff)
downloadrpmdrake-a29fa866dbb7dfa41a18da4d636639fb39634b72.tar
rpmdrake-a29fa866dbb7dfa41a18da4d636639fb39634b72.tar.gz
rpmdrake-a29fa866dbb7dfa41a18da4d636639fb39634b72.tar.bz2
rpmdrake-a29fa866dbb7dfa41a18da4d636639fb39634b72.tar.xz
rpmdrake-a29fa866dbb7dfa41a18da4d636639fb39634b72.zip
(rpm_summary) kill it; since perl-URPM-1.56, perl knows that strings from rpm
headers are UTF-8, thus fixing a crash (#33283)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/formatting.pm8
-rw-r--r--Rpmdrake/pkg.pm4
2 files changed, 3 insertions, 9 deletions
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index 567855dc..0da48a43 100644
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -33,15 +33,9 @@ use ugtk2 qw(escape_text_for_TextView_markup_format);
use Exporter;
our @ISA = qw(Exporter);
-our @EXPORT = qw(format_field format_header localtime2changelog my_fullname pkg2medium rpm_description rpm_summary split_fullname urpm_name);
+our @EXPORT = qw(format_field format_header localtime2changelog my_fullname pkg2medium rpm_description split_fullname urpm_name);
-sub rpm_summary {
- my ($summary) = @_;
- utf8::decode($summary) if !utf8::is_utf8($summary);
- $summary;
-}
-
sub rpm_description {
my ($description) = @_;
utf8::decode($description);
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 8e77a5a6..41cc9556 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -342,7 +342,7 @@ sub get_pkgs {
#- Extract summary and description since they'll be lost when the header is packed
$all_pkgs{$fullname} = {
selected => 0, pkg => $pkg, urpm_name => urpm_name($pkg),
- summary => rpm_summary($pkg->summary),
+ summary => $pkg->summary,
description => rpm_description($pkg->description),
} if !($all_pkgs{$fullname} && $all_pkgs{$fullname}{description});
if (my $name = $base{$fullname}) {
@@ -425,7 +425,7 @@ sub get_pkgs {
}
}
$all_pkgs{urpm_name($pkg)} = { selected => $selected, pkg => $pkg,
- summary => rpm_summary($pkg->summary),
+ summary => $pkg->summary,
};
}
if ($::rpmdrake_options{'pkg-sel'} && $::rpmdrake_options{'pkg-nosel'}) {