summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-05-07 15:41:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-05-07 15:41:55 +0000
commit6e0714d453adf6cb59f3a8083d3561d5f274be16 (patch)
treef1b76708279145c1eb63b7d23f5c7d08648858a5 /perl-install/install_steps_interactive.pm
parentd91336f90687a1f2386f4941b1589c54af085983 (diff)
downloaddrakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar
drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.gz
drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.bz2
drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.xz
drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.zip
no_comment
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm29
1 files changed, 15 insertions, 14 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 648ac4237..ada8e2c59 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -66,22 +66,23 @@ sub selectLanguage($) {
}
#------------------------------------------------------------------------------
sub selectKeyboard($) {
- my ($o) = @_;
- $o->{keyboard} =
- keyboard::text2keyboard($o->ask_from_list_(_("Keyboard"),
- _("Please, choose your keyboard layout."),
- [ keyboard::list() ],
- keyboard::keyboard2text($o->{keyboard})));
- delete $o->{keyboard_unsafe};
- install_steps::selectKeyboard($o);
-
-
+ my ($o, $clicked) = @_;
+ if (!$::beginner || $clicked) {
+ $o->{keyboard} =
+ keyboard::text2keyboard($o->ask_from_list_(_("Keyboard"),
+ _("Please, choose your keyboard layout."),
+ [ keyboard::list() ],
+ keyboard::keyboard2text($o->{keyboard})));
+ delete $o->{keyboard_unsafe};
+ }
if ($::expert) {
- my $langs = $o->ask_many_from_list('',
+ my %langs; $langs{$_} = 1 foreach @{$o->{langs}};
+ $o->ask_many_from_list_ref('',
_("You can choose other languages that will be available after install"),
- [ sort { $a cmp $b } lang::list() ]) or goto &selectLanguage;
- $o->{langs} = [ $o->{lang}, grep_index { $langs->[$::i] } lang::list() ];
+ [ lang::list() ], [ map { \$langs{lang::text2lang($_)} } lang::list() ] ) or goto &selectKeyboard;
+ $o->{langs} = [ grep { $langs{$_} } keys %langs ];
}
+ install_steps::selectKeyboard($o);
}
#------------------------------------------------------------------------------
sub selectRootPartition($@) {
@@ -1164,7 +1165,7 @@ sub setup_thiskind {
my $allow_probe = !$::expert || $o->ask_yesorno('', _("Try to find PCI devices?"), 1);
if ($allow_probe) {
- eval { @l = $o->load_thiskind($type) };
+ eval { @l = grep { !/ide-/ } $o->load_thiskind($type) };
$o->ask_warn('', $@) if $@;
return if $auto && (@l || !$at_least_one);
}