summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-13 19:37:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-13 19:37:16 +0000
commitb5f9832e36a7c2d7dc740cb53a406175480165b9 (patch)
tree3c63590ff7bde248e1eeccf3baf21295b2beecda /perl-install/interactive.pm
parent8c5ccde3e9796cd4632f4613ee9f6286591bc8c5 (diff)
downloaddrakx-backup-do-not-use-b5f9832e36a7c2d7dc740cb53a406175480165b9.tar
drakx-backup-do-not-use-b5f9832e36a7c2d7dc740cb53a406175480165b9.tar.gz
drakx-backup-do-not-use-b5f9832e36a7c2d7dc740cb53a406175480165b9.tar.bz2
drakx-backup-do-not-use-b5f9832e36a7c2d7dc740cb53a406175480165b9.tar.xz
drakx-backup-do-not-use-b5f9832e36a7c2d7dc740cb53a406175480165b9.zip
fix ask_warn(), really dont make it pop
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r--perl-install/interactive.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm
index 958b54a6b..b32991c4c 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -195,7 +195,7 @@ sub ask_from_listf_raw {
sub ask_from_listf_raw_no_check {
my ($o, $common, $f, $l, $def) = @_;
- if (@$l <= 2 && !$::isWizard) {
+ if (@$l <= ($::isWizard ? 1 : 2)) {
my ($ok, $cancel) = map { $_ && may_apply($f, $_) } @$l;
if (length "$ok$cancel" < 70) {
my $ret = eval {
@@ -207,7 +207,7 @@ sub ask_from_listf_raw_no_check {
return $@ ? undef : $ret;
}
}
- ask_from_($o, $common, [ { val => \$def, type => 'list', list => $l, format => $f } ]) && $def;
+ ask_from_no_check($o, $common, [ { val => \$def, type => 'list', list => $l, format => $f } ]) && $def;
}
sub ask_from_treelist {