diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-07-13 08:35:17 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-07-13 08:35:17 +0000 |
commit | 6d2a07cf19c31c9cf1453c8bb3d09f83c1c59e1e (patch) | |
tree | da3d98568ac110b39cda76156f5aaae80a8edfdc | |
parent | a6e1b42df34b37cad65e8073886aea3604979660 (diff) | |
download | rpmdrake-6d2a07cf19c31c9cf1453c8bb3d09f83c1c59e1e.tar rpmdrake-6d2a07cf19c31c9cf1453c8bb3d09f83c1c59e1e.tar.gz rpmdrake-6d2a07cf19c31c9cf1453c8bb3d09f83c1c59e1e.tar.bz2 rpmdrake-6d2a07cf19c31c9cf1453c8bb3d09f83c1c59e1e.tar.xz rpmdrake-6d2a07cf19c31c9cf1453c8bb3d09f83c1c59e1e.zip |
Avoid to select an entire subtree. Works around bug #9941.
-rwxr-xr-x | rpmdrake | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -501,12 +501,12 @@ 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; - int(@nodes) or return; + @nodes = grep { exists $pkgs->{$_} } @nodes + or return; my $new_state = !$pkgs->{$nodes[0]}{selected}; my @nodes_with_deps; |