aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-19 05:50:18 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-19 05:50:18 +0000
commit39d045a383ab5c952041f461eb2775affe106de7 (patch)
tree22247250efd4d61532d0eb14f388e99c7902f949
parent35924b14f6b82d073b03be839e0ab1158e51a82d (diff)
downloadrpmdrake-39d045a383ab5c952041f461eb2775affe106de7.tar
rpmdrake-39d045a383ab5c952041f461eb2775affe106de7.tar.gz
rpmdrake-39d045a383ab5c952041f461eb2775affe106de7.tar.bz2
rpmdrake-39d045a383ab5c952041f461eb2775affe106de7.tar.xz
rpmdrake-39d045a383ab5c952041f461eb2775affe106de7.zip
Allow selecting all packages when don't showing selections
-rwxr-xr-xrpmdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index aa4de4f7..79249ed3 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -518,8 +518,8 @@ or you already installed all of them."));
my ($set_state, @nodes) = @_;
@nodes = grep { exists $pkgs->{$_} } @nodes
or return;
- return if @nodes == keys %$pkgs; #- avoid selecting every package
- return if !$dont_show_selections && @nodes > 2000; #- avoid selecting too many packages at once
+ #- avoid selecting too many packages at once
+ return if !$dont_show_selections && (@nodes == keys %$pkgs || @nodes > 2000);
my $new_state = !$pkgs->{$nodes[0]}{selected};
my @nodes_with_deps;