diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-30 10:50:28 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-30 10:50:28 +0000 |
commit | 18e4bd75672a2fd5bf79585e885ac0b087b5b37e (patch) | |
tree | 337ae4c208e5471930af1f9f7c539d51cee9d58b | |
parent | 3a093f198bbfe2bca7f0ee4d9221733103ef5743 (diff) | |
download | rpmdrake-18e4bd75672a2fd5bf79585e885ac0b087b5b37e.tar rpmdrake-18e4bd75672a2fd5bf79585e885ac0b087b5b37e.tar.gz rpmdrake-18e4bd75672a2fd5bf79585e885ac0b087b5b37e.tar.bz2 rpmdrake-18e4bd75672a2fd5bf79585e885ac0b087b5b37e.tar.xz rpmdrake-18e4bd75672a2fd5bf79585e885ac0b087b5b37e.zip |
localtime gives the hour of the day which I don't want for
changelog printings
-rwxr-xr-x | rpmdrake | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -121,8 +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) }); + my $localtime2changelog = sub { scalar(localtime($_[0])) =~ /(.*) \S+ (\d{4})$/; "$1 $2" }; @$max_info_in_descr and add2hash($pkg, { files => join("\n", $p->files), - changelog => join("\n", mapn { "* ".scalar(localtime($_[2]))." $_[0]\n\n$_[1]\n" } + changelog => join("\n", mapn { "* ".$localtime2changelog->($_[2])." $_[0]\n\n$_[1]\n" } [ $p->changelog_name ], [ $p->changelog_text ], [ $p->changelog_time ]) }); $p->pack_header; } else { |