diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-04-17 15:42:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-04-17 15:42:29 +0000 |
commit | dddfb90059117e6dde52c09e79ba0c8672942b53 (patch) | |
tree | 351bfc56411ea5e33782e579e7291ed783023b4c /perl-install/interactive.pm | |
parent | e2ab672b87d900beabb21632833e2f97d475b09a (diff) | |
download | drakx-backup-do-not-use-dddfb90059117e6dde52c09e79ba0c8672942b53.tar drakx-backup-do-not-use-dddfb90059117e6dde52c09e79ba0c8672942b53.tar.gz drakx-backup-do-not-use-dddfb90059117e6dde52c09e79ba0c8672942b53.tar.bz2 drakx-backup-do-not-use-dddfb90059117e6dde52c09e79ba0c8672942b53.tar.xz drakx-backup-do-not-use-dddfb90059117e6dde52c09e79ba0c8672942b53.zip |
no_comment
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r-- | perl-install/interactive.pm | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index e09838d6b..b6beb96a4 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -155,20 +155,13 @@ sub ask_from_treelistW($$$$;$) { sub ask_many_from_list_ref { - my ($o, $title, $message, $l, $val) = @_; - return 1 if @$l == 0; - $o->ask_many_from_list_refW($title, [ deref($message) ], $l, $val); + my ($o, $title, $message, @l) = @_; + $o->ask_many_from_list_with_help_ref($title, [ deref($message) ], map { ($_->[0], [], $_->[1]) } combine(2, @l)); } sub ask_many_from_list_with_help_ref { - my ($o, $title, $message, $l, $help, $val) = @_; - return 1 if @$l == 0; - $o->ask_many_from_list_with_help_refW($title, [ deref($message) ], $l, $help, $val); -} - -#- defaults to without help -sub ask_many_from_list_with_help_refW { - my ($o, $title, $messages, $list, $help, $val) = @_; - $o->ask_many_from_list_refW($title, $messages, $list, $val); + my ($o, $title, $message, @l) = @_; + my @L = grep { $_->[0] } combine(3, @l) or return 1; + $o->ask_many_from_list_with_help_refW($title, [ deref($message) ], @L); } sub ask_many_from_list { |