aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-08 15:35:10 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-08 15:35:10 +0000
commitb8e609b9f6e41699b834c83cb35ebff2f55edf64 (patch)
treef4c9dee1c309653204cd5749811f18dc93b9a338
parentfa32dbfc6f09b559587b9ddab2de9f390b25ec44 (diff)
downloadrpmdrake-b8e609b9f6e41699b834c83cb35ebff2f55edf64.tar
rpmdrake-b8e609b9f6e41699b834c83cb35ebff2f55edf64.tar.gz
rpmdrake-b8e609b9f6e41699b834c83cb35ebff2f55edf64.tar.bz2
rpmdrake-b8e609b9f6e41699b834c83cb35ebff2f55edf64.tar.xz
rpmdrake-b8e609b9f6e41699b834c83cb35ebff2f55edf64.zip
(extract_header) simplify
-rw-r--r--Rpmdrake/pkg.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index c2149e08..57d9c355 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -156,8 +156,7 @@ sub extract_header {
warn "Warning, could not extract header for $name from $medium!";
goto header_non_available;
};
- add2hash($pkg, { description => rpm_description($p->description) });
- add2hash($pkg, {
+ add2hash($pkg, { description => rpm_description($p->description),
files => scalar($p->files) ? [ $p->files ] : [ N("(none)") ],
changelog => $chg_prepro->(join("\n", map {
"* " . localtime2changelog($_->{time}) . " $_->{name}\n\n$_->{text}\n" } $p->changelogs)) });