aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-03-03 16:21:56 +0000
committerThierry Vignaud <tv@mandriva.org>2010-03-03 16:21:56 +0000
commit39fe9dd1311a8ebaf6fb8a7a3830c8f079c51aa3 (patch)
tree9aa069580204bf8ebb35027c8cc302056fb86072
parent65b2ffdce737daa263aefcb38a7dd6e65a5b78e3 (diff)
downloadrpmdrake-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
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/gui.pm5
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 87991b6c..f2afa266 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+- do not show file list if empty
- edit-urpm-sources:
o fix crashing when deleting media with UTF-8 characters (#57644)
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" ];