aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-06 17:21:50 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-06 17:21:50 +0000
commit5fed1373c236b8d91e969d02c89990233ec12461 (patch)
tree3a9b880f7a6b7918a89a0bc6ddf28bb181ba3e60
parent3b27a074fd421b44531fe58efacec5840cfd93b7 (diff)
downloadrpmdrake-5fed1373c236b8d91e969d02c89990233ec12461.tar
rpmdrake-5fed1373c236b8d91e969d02c89990233ec12461.tar.gz
rpmdrake-5fed1373c236b8d91e969d02c89990233ec12461.tar.bz2
rpmdrake-5fed1373c236b8d91e969d02c89990233ec12461.tar.xz
rpmdrake-5fed1373c236b8d91e969d02c89990233ec12461.zip
(extract_header) fix formating of file list of non installed packages
-rw-r--r--Rpmdrake/pkg.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 750370c8..d2755e01 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -166,7 +166,8 @@ sub extract_header {
if ($xml_info eq 'info') {
add2hash($pkg, { description => rpm_description($xml_info_pkgs{$name}{description}) });
} elsif ($xml_info eq 'files') {
- add2hash($pkg, { files => [ $xml_info_pkgs{$name}{files} || N("(none)") ] });
+ my @files = map { chomp_(to_utf8($_)) } split("\n", $xml_info_pkgs{$name}{files});
+ add2hash($pkg, { files => [ @files ? @files : N("(none)") ] });
} elsif ($xml_info eq 'changelog') {
add2hash($pkg, {
changelog => $chg_prepro->(join("\n", map {