aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-08 16:02:14 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-08 16:02:14 +0000
commit0ed66231cb182f36611444dbd643ad5dbd7e2c1c (patch)
tree98edc15128240be3beccea41456fb290bc36d4c3 /Rpmdrake/pkg.pm
parent6061f17e5324cd123bb7f49d5d262bb02cfa72f0 (diff)
downloadrpmdrake-0ed66231cb182f36611444dbd643ad5dbd7e2c1c.tar
rpmdrake-0ed66231cb182f36611444dbd643ad5dbd7e2c1c.tar.gz
rpmdrake-0ed66231cb182f36611444dbd643ad5dbd7e2c1c.tar.bz2
rpmdrake-0ed66231cb182f36611444dbd643ad5dbd7e2c1c.tar.xz
rpmdrake-0ed66231cb182f36611444dbd643ad5dbd7e2c1c.zip
(format_changelog_changelogs) factorize formatting unlocalized changelogs
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 27c8d56b..8dbd11ea 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -153,8 +153,7 @@ sub extract_header {
};
add2hash($pkg, { description => rpm_description($p->description),
files => scalar($p->files) ? [ $p->files ] : [ N("(none)") ],
- changelog => format_changelog_string(join("\n", map {
- "* " . localtime2changelog($_->{time}) . " $_->{name}\n\n$_->{text}\n" } $p->changelogs)) });
+ changelog => format_changelog_changelogs($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') {
@@ -164,9 +163,7 @@ sub extract_header {
add2hash($pkg, { files => [ @files ? @files : N("(none)") ] });
} elsif ($xml_info eq 'changelog') {
add2hash($pkg, {
- changelog => format_changelog_string(join("\n", map {
- "* " . localtime2changelog($_->{time}) . " $_->{name}\n\n$_->{text}\n";
- } @{$xml_info_pkgs{$name}{changelogs}}))
+ changelog => format_changelog_changelogs(@{$xml_info_pkgs{$name}{changelogs}})
});
}
$p->pack_header; # needed in order to call methods on objects outside ->traverse