From d399d4a79c5ac51ba6700e8c0f0627fc939008aa Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 6 Sep 2004 03:40:15 +0000 Subject: - 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 --- perl-install/install_steps_interactive.pm | 4 ++-- 1 file 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")); } -- cgit v1.2.1