summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-02-07 17:31:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-02-07 17:31:42 +0000
commit2f6dc4fc72116c41e0e7e52374f0abd08c28bb48 (patch)
tree4454df3cd11d1feb02a0282af14fa03468d27d35
parent0e7736e6833b2b692dec32a13b8f8493821f5534 (diff)
downloaddrakx-2f6dc4fc72116c41e0e7e52374f0abd08c28bb48.tar
drakx-2f6dc4fc72116c41e0e7e52374f0abd08c28bb48.tar.gz
drakx-2f6dc4fc72116c41e0e7e52374f0abd08c28bb48.tar.bz2
drakx-2f6dc4fc72116c41e0e7e52374f0abd08c28bb48.tar.xz
drakx-2f6dc4fc72116c41e0e7e52374f0abd08c28bb48.zip
(choosePackages): better fix for getting max install size.
-rw-r--r--perl-install/install_steps_interactive.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 561729f1d..9da7f7a4d 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -416,7 +416,7 @@ sub choosePackages {
my $b = pkgs::saveSelected($packages);
pkgs::setSelectedFromCompssList($packages, $o->{compssUsersChoice}, $def_mark, 0);
my $def_size = pkgs::selectedSize($packages) + 1; #- avoid division by zero.
- my $level = pkgs::setSelectedFromCompssList($packages, '', $min_mark, 0);
+ my $level = pkgs::setSelectedFromCompssList($packages, { map { $_ => 1 } map { @{$compssUsers->{$_}} } @{$o->{compssUsersSorted}} }, $min_mark, 0);
my $max_size = pkgs::selectedSize($packages) + 1; #- avoid division by zero.
pkgs::restoreSelected($b);