diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-03-03 16:21:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-03-03 16:21:56 +0000 |
commit | 39fe9dd1311a8ebaf6fb8a7a3830c8f079c51aa3 (patch) | |
tree | 9aa069580204bf8ebb35027c8cc302056fb86072 /Rpmdrake | |
parent | 65b2ffdce737daa263aefcb38a7dd6e65a5b78e3 (diff) | |
download | rpmdrake-39fe9dd1311a8ebaf6fb8a7a3830c8f079c51aa3.tar rpmdrake-39fe9dd1311a8ebaf6fb8a7a3830c8f079c51aa3.tar.gz rpmdrake-39fe9dd1311a8ebaf6fb8a7a3830c8f079c51aa3.tar.bz2 rpmdrake-39fe9dd1311a8ebaf6fb8a7a3830c8f079c51aa3.tar.xz rpmdrake-39fe9dd1311a8ebaf6fb8a7a3830c8f079c51aa3.zip |
(format_pkg_simplifiedinfo) do not show file list if empty
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/gui.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 5afbdab5..b615d756 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -254,14 +254,15 @@ sub format_pkg_simplifiedinfo { gtknew('TextView', text => get_details($key, $pkg, $upkg, $installed_version, $raw_medium))) ]; $exp0->set_use_markup(1); push @$s, [ "\n\n" ]; + if (exists $pkg->{files}) { push @$s, [ build_expander($pkg, N("Files:"), 'files', sub { - exists $pkg->{files} ? ugtk2::markup_to_TextView_format('<tt>' . $spacing . join("\n$spacing", map { "\x{200e}$_" } @{$pkg->{files}} ) . '</tt>') #- to highlight information - : () }) ]; + }) ]; push @$s, [ "\n\n" ]; + } push @$s, [ build_expander($pkg, N("Changelog:"), 'changelog', sub { $pkg->{changelog} }, $installed_version) ]; push @$s, [ "\n\n" ]; |