diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-07-26 09:37:20 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-07-26 09:37:20 +0000 |
commit | fd0744fb5c785e7d985f9defed6157500cc5b0bc (patch) | |
tree | af1a419d3c50ec0c69bffbf45ccba4398577e587 | |
parent | 40438484786f851ac2787785dab147ed5a1826f4 (diff) | |
download | rpmdrake-fd0744fb5c785e7d985f9defed6157500cc5b0bc.tar rpmdrake-fd0744fb5c785e7d985f9defed6157500cc5b0bc.tar.gz rpmdrake-fd0744fb5c785e7d985f9defed6157500cc5b0bc.tar.bz2 rpmdrake-fd0744fb5c785e7d985f9defed6157500cc5b0bc.tar.xz rpmdrake-fd0744fb5c785e7d985f9defed6157500cc5b0bc.zip |
Better fix for bug #9941: don't ever select the whole tree.
-rwxr-xr-x | rpmdrake | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -506,12 +506,13 @@ or you already installed all of them.")); partialsel_unsel => sub { my ($unsel, $sel) = @_; @$sel = grep { exists $pkgs->{$_} } @$sel; - @$unsel <= @$sel; + @$unsel < @$sel; }, toggle_nodes => sub { my ($set_state, @nodes) = @_; @nodes = grep { exists $pkgs->{$_} } @nodes or return; + return if @nodes == keys %$pkgs; #- avoid selecting every package my $new_state = !$pkgs->{$nodes[0]}{selected}; my @nodes_with_deps; |