aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-09-09 11:54:39 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-09-09 11:54:39 +0000
commit721c4b27aedfcd24b5010dd1e232617ffa5876d9 (patch)
tree2383c7c373839a23f88b47ce604b8edca310c78a
parente182e3721d468f0c80bb297609696488f99d7b0b (diff)
downloadrpmdrake-721c4b27aedfcd24b5010dd1e232617ffa5876d9.tar
rpmdrake-721c4b27aedfcd24b5010dd1e232617ffa5876d9.tar.gz
rpmdrake-721c4b27aedfcd24b5010dd1e232617ffa5876d9.tar.bz2
rpmdrake-721c4b27aedfcd24b5010dd1e232617ffa5876d9.tar.xz
rpmdrake-721c4b27aedfcd24b5010dd1e232617ffa5876d9.zip
in removal mode, fix misleading presence of "update sources"; fix
behaviour of "reset selection"
-rwxr-xr-xrpmdrake12
1 files changed, 7 insertions, 5 deletions
diff --git a/rpmdrake b/rpmdrake
index 86ea4c6b..bfa43b50 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -562,15 +562,17 @@ or you already installed all of them."));
$search_types_optionmenu->set_menu($search_types_menu);
my $menu_treeview = new Gtk::Menu;
- my @menu_treeview_actions = ([ 'reset_selection', _("Reset the selection") ], [ 'reload_pkg', _("Reload the packages list") ],
- [ 'update_sources', _("Update source(s)") ]);
+ my @menu_treeview_actions = ([ 'reset_selection', _("Reset the selection") ], [ 'reload_pkg', _("Reload the packages list") ]);
+ $MODE ne 'remove' and push @menu_treeview_actions, [ 'update_sources', _("Update source(s)") ];
foreach (@menu_treeview_actions) {
my ($action, $text) = @$_;
my %action2fun; %action2fun = (
reset_selection => sub {
- $urpm->{state}{unselected} = {};
- $urpm->resolve_unrequested(db, $urpm->{state},
- { map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{pkg}->id => undef) } keys %$pkgs });
+ if ($MODE ne 'remove') {
+ $urpm->{state}{unselected} = {};
+ $urpm->resolve_unrequested(db, $urpm->{state},
+ { map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{pkg}->id => undef) } keys %$pkgs });
+ }
$pkgs->{$_}{selected} = 0 foreach keys %$pkgs;
$size_selected = 0;
$options->{rebuild_tree}->();