diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-09-06 09:16:02 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-09-06 09:16:02 +0000 |
commit | 7cbc1a5c906d45e345d61196fd0a6214790af104 (patch) | |
tree | 2e94990283051b2b18073a7453db83aa25d6e313 /Rpmdrake/pkg.pm | |
parent | e7ab009eab48d65b394641cd48fcfad9cb29e294 (diff) | |
download | rpmdrake-7cbc1a5c906d45e345d61196fd0a6214790af104.tar rpmdrake-7cbc1a5c906d45e345d61196fd0a6214790af104.tar.gz rpmdrake-7cbc1a5c906d45e345d61196fd0a6214790af104.tar.bz2 rpmdrake-7cbc1a5c906d45e345d61196fd0a6214790af104.tar.xz rpmdrake-7cbc1a5c906d45e345d61196fd0a6214790af104.zip |
(extract_header,get_pkgs) keep summary in RAM (needed for next commits)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r-- | Rpmdrake/pkg.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index b82aa698..3e07c672 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -125,7 +125,7 @@ sub extract_header { goto header_non_available; }; rm_rf($headersdir); - add2hash($pkg, { summary => rpm_summary($p->summary), description => rpm_description($p->description) }); + 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" } @@ -420,7 +420,9 @@ sub get_pkgs { push @backports, $name if $search_med->{start} <= $pkg->id && $pkg->id <= $search_med->{end}; } } - $all_pkgs{urpm_name($pkg)} = { selected => $selected, pkg => $pkg }; + $all_pkgs{urpm_name($pkg)} = { selected => $selected, pkg => $pkg, + summary => rpm_summary($pkg->summary), + }; } if ($::rpmdrake_options{'pkg-sel'} && $::rpmdrake_options{'pkg-nosel'}) { push @{$::rpmdrake_options{'pkg-nosel'}}, @{$::rpmdrake_options{'pkg-sel'}}; |