aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-08 15:32:23 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-08 15:32:23 +0000
commitfa32dbfc6f09b559587b9ddab2de9f390b25ec44 (patch)
tree2efcc589ae44c2b5cedff8e2d86c74baca0c4bfb /Rpmdrake/pkg.pm
parentf8a4165d909c6cb22e420e19c840877b9ce5c946 (diff)
downloadrpmdrake-fa32dbfc6f09b559587b9ddab2de9f390b25ec44.tar
rpmdrake-fa32dbfc6f09b559587b9ddab2de9f390b25ec44.tar.gz
rpmdrake-fa32dbfc6f09b559587b9ddab2de9f390b25ec44.tar.bz2
rpmdrake-fa32dbfc6f09b559587b9ddab2de9f390b25ec44.tar.xz
rpmdrake-fa32dbfc6f09b559587b9ddab2de9f390b25ec44.zip
(extract_header) adapt to new ->changelogs() for local packages
(instead of ->changelog_name(), ->changelog_text() and ->changelog_time())
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index d2755e01..c2149e08 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -159,8 +159,8 @@ sub extract_header {
add2hash($pkg, { description => rpm_description($p->description) });
add2hash($pkg, {
files => scalar($p->files) ? [ $p->files ] : [ N("(none)") ],
- changelog => $chg_prepro->(join("\n", mapn { "* " . localtime2changelog($_[2]) . " $_[0]\n\n$_[1]\n" }
- [ $p->changelog_name ], [ $p->changelog_text ], [ $p->changelog_time ])) });
+ changelog => $chg_prepro->(join("\n", map {
+ "* " . localtime2changelog($_->{time}) . " $_->{name}\n\n$_->{text}\n" } $p->changelogs)) });
$p->pack_header; # needed in order to call methods on objects outside ->traverse
} elsif ($xml_info_pkgs{$name}) {
if ($xml_info eq 'info') {