summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-05-04 18:31:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-05-04 18:31:12 +0000
commit4e096379cad750ecfdb7ddd78eeae899380a7696 (patch)
treed8d20a99442163647d9daac826478cb5695f4312 /perl-install/interactive.pm
parenta653f2e1d6d6ff8ee49c647e747bdb5b549429c2 (diff)
downloaddrakx-4e096379cad750ecfdb7ddd78eeae899380a7696.tar
drakx-4e096379cad750ecfdb7ddd78eeae899380a7696.tar.gz
drakx-4e096379cad750ecfdb7ddd78eeae899380a7696.tar.bz2
drakx-4e096379cad750ecfdb7ddd78eeae899380a7696.tar.xz
drakx-4e096379cad750ecfdb7ddd78eeae899380a7696.zip
no_comment
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r--perl-install/interactive.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm
index f82091458..684f68179 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -227,8 +227,9 @@ sub ask_from_entries_ref($$$$;$%) {
if ((ref $_) eq "SCALAR") {
{ val => $_ }
} else {
- ($_->{list} && (@{$_->{list}} > 1)) ?
- { %$_, type => "list"} : $_;
+ add2hash_($_, { type => 'list' }) if @{$_->{list}} > 1; #- TODO: remove the if, not needed?
+ ${$_->{val}} = $_->{list}[0] if $_->{not_edit} && !member(${$_->{val}}, @{$_->{list}});
+ $_;
}
} @$val ];