summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-02-22 11:56:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-02-22 11:56:27 +0000
commitd256d73891a4806211f9de9007ea0b465cead03b (patch)
tree5db4a3c746046585405452292b09215c79d7c9e0 /perl-install
parent31bb43478b9d0af0e3343d761788e4c9d28297cc (diff)
downloaddrakx-d256d73891a4806211f9de9007ea0b465cead03b.tar
drakx-d256d73891a4806211f9de9007ea0b465cead03b.tar.gz
drakx-d256d73891a4806211f9de9007ea0b465cead03b.tar.bz2
drakx-d256d73891a4806211f9de9007ea0b465cead03b.tar.xz
drakx-d256d73891a4806211f9de9007ea0b465cead03b.zip
(ask_from_entries_refH_powered_normalize): fix setting type to 'list' in
case of format. should be only set if type is unset
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/interactive.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm
index de575c52b..8754970c6 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -219,7 +219,7 @@ sub ask_from_entries_refH_powered_normalize {
}
$e->{type} = 'iconlist' if $e->{icon2f};
$e->{type} = 'treelist' if $e->{separator};
- $e->{type} = 'list' if $e->{format};
+ $e->{type} ||= 'list' if $e->{format};
add2hash_($e, { not_edit => 1, type => 'combo' });
${$e->{val}} = $l->[0] if ($e->{type} ne 'combo' || $e->{not_edit}) && !member(${$e->{val}}, @$l);
} elsif ($e->{type} eq 'range') {