From de37dcb9db2de7b7ff55ed0f77dee4c0f5b670ed Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 18 Apr 2012 17:08:53 +0000 Subject: (_install_raw::ask_for_bad_or_missing) offer to not ask again about missing packages --- perl-install/install/pkgs.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'perl-install/install/pkgs.pm') diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index 348201c10..77aaebf9c 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -870,6 +870,17 @@ sub _install_raw { log::l($msg); $::o->ask_yesorno($title, $msg); }, + ask_for_bad_or_missing => sub { + my ($_title, $msg) = @_; + log::l($msg); + state $do_not_ask; + state $answer; + return $answer if $do_not_ask; + $answer = $::o->ask_from_({ messages => $msg }, [ + { val => \$do_not_ask, type => 'bool', text => N("Do not ask again"), + }, + ]); + }, # Uneeded callbacks: success_summary }); -- cgit v1.2.1