aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-09-04 10:33:57 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-09-04 10:33:57 +0000
commitf975975d1356606e797672417f08a54b9f3eb35e (patch)
tree4c3867265fa4f4adcc94befd9583b097dbae8c0e
parent6a155f61344910461b07e71bdfbcd503be544ff0 (diff)
downloadrpmdrake-f975975d1356606e797672417f08a54b9f3eb35e.tar
rpmdrake-f975975d1356606e797672417f08a54b9f3eb35e.tar.gz
rpmdrake-f975975d1356606e797672417f08a54b9f3eb35e.tar.bz2
rpmdrake-f975975d1356606e797672417f08a54b9f3eb35e.tar.xz
rpmdrake-f975975d1356606e797672417f08a54b9f3eb35e.zip
don't display currently installed version in remove mode
-rwxr-xr-xrpmdrake10
1 files changed, 5 insertions, 5 deletions
diff --git a/rpmdrake b/rpmdrake
index d863896f..c6ea252d 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -425,11 +425,11 @@ or you already installed all of them."));
exists $pkgs->{$key}{description} && (!@$max_info_in_descr || exists $pkgs->{$key}{files})
or slow_func($tree->window, sub { extract_header($pkgs->{$key}, $urpm) });
my @max_info = if_(@$max_info_in_descr,
- $MODE eq 'remove' ? ()
- : [ "\n", _("Source: "), pkg2medium($pkgs->{$key}{pkg}, $urpm)->{name} ],
- [ "\n", _("Currently installed version: "), find_installed_version($pkgs->{$key}{pkg}) ],
- [ "\n", _("Files:\n"), $pkgs->{$key}{files} || _("(Not available)") ],
- [ "\n\n", _("Changelog:\n"), $pkgs->{$key}{changelog} || _("(Not available)") ]);
+ $MODE eq 'remove' ? ()
+ : ([ "\n", _("Source: "), pkg2medium($pkgs->{$key}{pkg}, $urpm)->{name} ],
+ [ "\n", _("Currently installed version: "), find_installed_version($pkgs->{$key}{pkg}) ]),
+ [ "\n", _("Files:\n"), $pkgs->{$key}{files} || _("(Not available)") ],
+ [ "\n\n", _("Changelog:\n"), $pkgs->{$key}{changelog} || _("(Not available)") ]);
my $col = my_gtk::gtkcolor(32*256, 68*256, 157*256);
$MODE eq 'update' and gtktext_insert($info_update,
[ [ undef, $col, undef, _("Reason for update: ") ],