From e285ee8f5334033063745a132bd3016f1f6ddca1 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Tue, 16 Sep 2003 10:49:50 +0000 Subject: added question to ask for recovering the system in recover mode. --- perl-install/install_steps_interactive.pm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 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 41a386759..f57c78c6b 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -81,13 +81,15 @@ sub acceptLicense { my $r = 'Refuse'; - $o->ask_from_({ title => N("License agreement"), - cancel => N("Quit"), - messages => formatAlaTeX(install_messages::main_license() . "\n\n\n" . install_messages::warning_about_patents()), - interactive_help_id => 'acceptLicense', - callbacks => { ok_disabled => sub { $r eq 'Refuse' } }, - }, - [ { list => [ N_("Accept"), N_("Refuse") ], val => \$r, type => 'list', format => sub { translate($_[0]) } } ]) + ($::recovery ? + $o->ask_yesorno('', N("Do you want to recover your system?"), 0) : + $o->ask_from_({ title => N("License agreement"), + cancel => N("Quit"), + messages => formatAlaTeX(install_messages::main_license() . "\n\n\n" . install_messages::warning_about_patents()), + interactive_help_id => 'acceptLicense', + callbacks => { ok_disabled => sub { $r eq 'Refuse' } }, + }, + [ { list => [ N_("Accept"), N_("Refuse") ], val => \$r, type => 'list', format => sub { translate($_[0]) } } ])) or do { install_any::ejectCdrom(); $o->exit; -- cgit v1.2.1