aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-26 09:37:20 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-26 09:37:20 +0000
commitfd0744fb5c785e7d985f9defed6157500cc5b0bc (patch)
treeaf1a419d3c50ec0c69bffbf45ccba4398577e587
parent40438484786f851ac2787785dab147ed5a1826f4 (diff)
downloadrpmdrake-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-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index a0bae5fa..4d6185b6 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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;