aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-08 17:25:14 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-08 17:25:14 +0000
commit6fb41ace5c3ee7ab7e0a36c0e2840801772911d0 (patch)
tree330b908aebc6d12ce6b0fbeb830875f1046d359d
parent2f984a318051efd313346a9c51e493120c3836ea (diff)
downloadrpmdrake-6fb41ace5c3ee7ab7e0a36c0e2840801772911d0.tar
rpmdrake-6fb41ace5c3ee7ab7e0a36c0e2840801772911d0.tar.gz
rpmdrake-6fb41ace5c3ee7ab7e0a36c0e2840801772911d0.tar.bz2
rpmdrake-6fb41ace5c3ee7ab7e0a36c0e2840801772911d0.tar.xz
rpmdrake-6fb41ace5c3ee7ab7e0a36c0e2840801772911d0.zip
(format_pkg_simplifiedinfo) store installed_version
-rw-r--r--Rpmdrake/gui.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index b184b969..3a46c643 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -135,13 +135,14 @@ sub format_pkg_simplifiedinfo {
(eval { escape_text_for_TextView_markup_format($pkg->{description} || $update_descr->{description}) } || '<i>' . N("No description") . '</i>')
)) };
push @$s, [ "\n" ];
+ my $installed_version = eval { find_installed_version($upkg) };
push @$s, [ gtkadd(gtkshow(my $exp0 = Gtk2::Expander->new(format_field(N("Details:")))),
gtknew('TextView', text => ugtk2::markup_to_TextView_format(
$spacing . join("\n$spacing",
format_field(N("Version: ")) . $version . '-' . $release,
($upkg->flag_installed ?
- format_field(N("Currently installed version: ")) . eval { find_installed_version($upkg) }
+ format_field(N("Currently installed version: ")) . $installed_version
: ()
),
format_field(N("Architecture: ")) . $upkg->arch,