aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-13 08:35:17 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-13 08:35:17 +0000
commit6d2a07cf19c31c9cf1453c8bb3d09f83c1c59e1e (patch)
treeda3d98568ac110b39cda76156f5aaae80a8edfdc
parenta6e1b42df34b37cad65e8073886aea3604979660 (diff)
downloadrpmdrake-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-xrpmdrake6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmdrake b/rpmdrake
index 281097eb..fd75615d 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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;