aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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" ];