aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-07-09 05:40:54 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-07-09 05:40:54 +0000
commitfb5e68048964984a9bab5cef6e071d57acaab5f4 (patch)
tree68fe5373e637e435cf405edff8ed85214279256d
parent25f79fb2da8f015a16975f049c8f9f218b2e8122 (diff)
downloadrpmdrake-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-xrpmdrake15
1 files changed, 15 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 8be0d40c..f00f4a28 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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);