aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-09-05 11:56:58 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-09-05 11:56:58 +0000
commit0f039647d7c46c9acab6a1199d793d5be7fb4a97 (patch)
treeb6523814591193dfa22564a475fc6745bd9f7fe1
parent28f4b2cd407847955cd613e5f1fc96abbcc0df91 (diff)
downloadrpmdrake-0f039647d7c46c9acab6a1199d793d5be7fb4a97.tar
rpmdrake-0f039647d7c46c9acab6a1199d793d5be7fb4a97.tar.gz
rpmdrake-0f039647d7c46c9acab6a1199d793d5be7fb4a97.tar.bz2
rpmdrake-0f039647d7c46c9acab6a1199d793d5be7fb4a97.tar.xz
rpmdrake-0f039647d7c46c9acab6a1199d793d5be7fb4a97.zip
selecting groups partially selected lead to unselection, not
selection
-rwxr-xr-xrpmdrake5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index f6483a0a..fe9aaf34 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -318,6 +318,11 @@ or you already installed all of them."));
remove_wait_msg($w);
},
grep_unselected => sub { grep { exists $pkgs->{$_} && !$pkgs->{$_}{selected} } @_ },
+ partialsel_unsel => sub {
+ my ($unsel, $sel) = @_;
+ @$sel = grep { exists $pkgs->{$_} } @$sel;
+ @$unsel < @$sel;
+ },
toggle_nodes => sub {
my ($set_state, @nodes) = @_;
@nodes = grep { exists $pkgs->{$_} } @nodes;