summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-09-06 03:40:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-09-06 03:40:15 +0000
commitd399d4a79c5ac51ba6700e8c0f0627fc939008aa (patch)
tree8bde383a1bcbbe644067439cc40bcbe90c3ad4aa /perl-install/install_steps_interactive.pm
parentfe1822dc5f8d78dc5696c274cf114473efd5584e (diff)
downloaddrakx-backup-do-not-use-d399d4a79c5ac51ba6700e8c0f0627fc939008aa.tar
drakx-backup-do-not-use-d399d4a79c5ac51ba6700e8c0f0627fc939008aa.tar.gz
drakx-backup-do-not-use-d399d4a79c5ac51ba6700e8c0f0627fc939008aa.tar.bz2
drakx-backup-do-not-use-d399d4a79c5ac51ba6700e8c0f0627fc939008aa.tar.xz
drakx-backup-do-not-use-d399d4a79c5ac51ba6700e8c0f0627fc939008aa.zip
- don't prompt package groups selection when the available size is 200MB (instead of 140MB)
- when user unselect every groups (ie. the special minimal install case), allow the available size to be lower than needed size
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 7f2ca6a2f..fb1ee8c07 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -536,7 +536,7 @@ sub chooseGroups {
};
while (1) {
- if ($available_size < 140) {
+ if ($available_size < 200) {
# too small to choose anything. Defaulting to no group chosen
$_->{selected} = 0 foreach @$compssUsers;
last;
@@ -544,7 +544,7 @@ sub chooseGroups {
$o->reallyChooseGroups($size_to_display, $individual, $compssUsers) or return;
- last if $::testing || pkgs::correctSize($size / sqr(1024)) < $available_size;
+ last if $::testing || pkgs::correctSize($size / sqr(1024)) < $available_size || every { !$_->{selected} } @$compssUsers;
$o->ask_warn('', N("Selected size is larger than available space"));
}