diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-30 10:01:43 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-30 10:01:43 +0000 |
commit | 3a093f198bbfe2bca7f0ee4d9221733103ef5743 (patch) | |
tree | c91a008786680ed3b28a514945ee730fedc50d6a | |
parent | b3423fca7854b62a7c5b24cc96bbbda30180e92f (diff) | |
download | rpmdrake-3a093f198bbfe2bca7f0ee4d9221733103ef5743.tar rpmdrake-3a093f198bbfe2bca7f0ee4d9221733103ef5743.tar.gz rpmdrake-3a093f198bbfe2bca7f0ee4d9221733103ef5743.tar.bz2 rpmdrake-3a093f198bbfe2bca7f0ee4d9221733103ef5743.tar.xz rpmdrake-3a093f198bbfe2bca7f0ee4d9221733103ef5743.zip |
/me stupid (well and fpons wrongly thought changelogs were
not in hdlists..), we can have the changelogs quicker using
the hdlists, and more over for distant sources we have the
changelog
-rwxr-xr-x | rpmdrake | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -121,14 +121,9 @@ sub extract_header { $p->update_header($headersdir . $p->header_filename) or log::l("Warning, could not extract header!"), goto header_non_available; rm_rf($headersdir); add2hash($pkg, { summary => $p->summary, description => beautify_description($p->description) }); - if (@$max_info_in_descr) { - $pkg->{files} = join("\n", $p->files); - my (undef, $list) = $urpm->get_source_packages({ $p->id => undef }); - if ($list) { - my $localfile = (values %{${$list}[0]})[0]; - $localfile =~ m,^file:/(.*)|^removable:/(.*), && -r $1 and $pkg->{changelog} = `rpm -qp --changelog $1`; - } - } + @$max_info_in_descr and add2hash($pkg, { files => join("\n", $p->files), + changelog => join("\n", mapn { "* ".scalar(localtime($_[2]))." $_[0]\n\n$_[1]\n" } + [ $p->changelog_name ], [ $p->changelog_text ], [ $p->changelog_time ]) }); $p->pack_header; } else { header_non_available: |