aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-09-18 08:38:33 +0000
committerThierry Vignaud <tv@mandriva.org>2006-09-18 08:38:33 +0000
commit6a15771ef59acb6d60f4b950db427cc2445ed22b (patch)
treeca4374c222d07dd8cfa07bbeadb5e02453ff7e3b
parente48586621503fdf26c99257d5647fe6a6ec74c0a (diff)
downloadrpmdrake-6a15771ef59acb6d60f4b950db427cc2445ed22b.tar
rpmdrake-6a15771ef59acb6d60f4b950db427cc2445ed22b.tar.gz
rpmdrake-6a15771ef59acb6d60f4b950db427cc2445ed22b.tar.bz2
rpmdrake-6a15771ef59acb6d60f4b950db427cc2445ed22b.tar.xz
rpmdrake-6a15771ef59acb6d60f4b950db427cc2445ed22b.zip
(format_pkg_simplifiedinfo) make empty file list looks like empty changelog
-rwxr-xr-xrpmdrake7
1 files changed, 3 insertions, 4 deletions
diff --git a/rpmdrake b/rpmdrake
index 7ea73a1a..eb0fb879 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -627,12 +627,11 @@ sub format_pkg_simplifiedinfo {
));
push @$s, [ "\n\n" ];
push @$s, [ gtkadd(gtkshow(my $exp = Gtk2::Expander->new(format_field(N("Files:")))),
- exists $pkgs->{$key}{files}
- ? gtktext_insert(Gtk2::TextView->new,
+ gtktext_insert(Gtk2::TextView->new,
+ exists $pkgs->{$key}{files} ?
ugtk2::markup_to_TextView_format('<tt>' . join("\n", map { "\x{200e}$_" } @{$pkgs->{$key}{files}}) . '</tt>') #- to highlight information
- )
: N("(Not available)"),
- ) ];
+ )) ];
$exp->set_use_markup(1);
push @$s, [ "\n\n" ];
push @$s, [ gtkadd(gtkshow(my $exp2 = Gtk2::Expander->new(format_field(N("Changelog:")))),