diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-09-18 21:42:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-09-18 21:42:21 +0000 |
commit | d1f790931b430a7e632cac0b46313433fec7f998 (patch) | |
tree | acd811801c15446bdafd7f01b8753746d7f1de81 /perl-install/interactive.pm | |
parent | ee9f3710e10dc30c02816097010c5a27868e33f5 (diff) | |
download | drakx-backup-do-not-use-d1f790931b430a7e632cac0b46313433fec7f998.tar drakx-backup-do-not-use-d1f790931b430a7e632cac0b46313433fec7f998.tar.gz drakx-backup-do-not-use-d1f790931b430a7e632cac0b46313433fec7f998.tar.bz2 drakx-backup-do-not-use-d1f790931b430a7e632cac0b46313433fec7f998.tar.xz drakx-backup-do-not-use-d1f790931b430a7e632cac0b46313433fec7f998.zip |
no_comment
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r-- | perl-install/interactive.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index b797b8fc5..e11a72029 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -251,6 +251,9 @@ sub ask_from_entries_ref($$$$;$%) { if (@{$_->{list} || []} > 1) { add2hash_($_, { not_edit => 1, type => 'list' }); ${$_->{val}} = $_->{list}[0] if $_->{not_edit} && !member(${$_->{val}}, @{$_->{list}}); + } elsif ($_->{type} eq 'range') { + $_->{min} <= $_->{max} or die "bad range (called from " . caller() . ")"; + ${$_->{val}} = max($_->{min}, min(${$_->{val}}, $_->{max})); } $_; } |