From e80c6bc54b1d64c53edf57f417bee30132e95d36 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 8 Mar 2006 12:36:02 +0000 Subject: - rename DOCS to CAT_MINIMAL_DOCS - cuz otherwise DOCS is a "always" flag and modifying it afterwise is useless - CAT_DOCS would be not precise enough - simplify the "changed" callback --- perl-install/install_steps_interactive.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/install_steps_interactive.pm') diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 1b193c203..2a348fdea 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -582,14 +582,14 @@ Please choose the minimal installation you want:"), { val => \$docs, type => 'bool', text => N("With basic documentation (recommended!)"), disabled => sub { $minimal } }, { val => \$minimal, type => 'bool', text => N("Truly minimal install (especially no urpmi)") }, ], - changed => sub { $o->{rpmsrate_flags_chosen}{CAT_X} = $docs = 0 if $minimal }, ) or return &chooseGroups; if ($minimal) { - $o->{rpmsrate_flags_chosen}{CAT_X} = $docs = 0; #- redo it in "changed" was not called + $o->{rpmsrate_flags_chosen}{CAT_X} = $docs = 0; $o->{rpmsrate_flags_chosen}{CAT_SYSTEM} = 0; } $o->{excludedocs} = !$docs; + $o->{rpmsrate_flags_chosen}{CAT_MINIMAL_DOCS} = $docs; install_any::unselectMostPackages($o); } -- cgit v1.2.1