diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-07-09 05:40:54 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-07-09 05:40:54 +0000 |
commit | fb5e68048964984a9bab5cef6e071d57acaab5f4 (patch) | |
tree | 68fe5373e637e435cf405edff8ed85214279256d | |
parent | 25f79fb2da8f015a16975f049c8f9f218b2e8122 (diff) | |
download | rpmdrake-fb5e68048964984a9bab5cef6e071d57acaab5f4.tar rpmdrake-fb5e68048964984a9bab5cef6e071d57acaab5f4.tar.gz rpmdrake-fb5e68048964984a9bab5cef6e071d57acaab5f4.tar.bz2 rpmdrake-fb5e68048964984a9bab5cef6e071d57acaab5f4.tar.xz rpmdrake-fb5e68048964984a9bab5cef6e071d57acaab5f4.zip |
(format_pkg_simplifiedinfo) create it for nicer default presentation
-rwxr-xr-x | rpmdrake | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -562,6 +562,21 @@ sub format_field { '<b>' . $str . '</b>'; } +sub format_pkg_simplifiedinfo { + my ($pkgs, $key, $urpm, $descriptions) = @_; + my ($name, $version) = split_fullname($key); + $name =~ s/^(.)/\U\1\E/; + ugtk2::markup_to_TextView_format(join("\n", format_header($name . ' - ' . $pkgs->{$key}{summary}), + if_( + $MODE eq 'update', + format_field(N("Importance: ")) . $descriptions->{$name}{importance}, + format_field(N("Reason for update: ")) . rpm_description($descriptions->{$name}{pre}), + ), + '', # extra empty line + ($pkgs->{$key}{description} || $descriptions->{$name}{description} || '<i>' . N("No description") . '</i>'), + )); +} + sub format_pkg_info { my ($pkgs, $key, $urpm, $descriptions) = @_; my ($name, $version) = split_fullname($key); |