summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-18 17:08:53 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-18 17:08:53 +0000
commitde37dcb9db2de7b7ff55ed0f77dee4c0f5b670ed (patch)
tree74ab0fb1844bd9bc6f4d3cd3192c5fe7852f261d
parent096d8dafd536bbe4cd596f801a3773431b0fd4ec (diff)
downloaddrakx-backup-do-not-use-de37dcb9db2de7b7ff55ed0f77dee4c0f5b670ed.tar
drakx-backup-do-not-use-de37dcb9db2de7b7ff55ed0f77dee4c0f5b670ed.tar.gz
drakx-backup-do-not-use-de37dcb9db2de7b7ff55ed0f77dee4c0f5b670ed.tar.bz2
drakx-backup-do-not-use-de37dcb9db2de7b7ff55ed0f77dee4c0f5b670ed.tar.xz
drakx-backup-do-not-use-de37dcb9db2de7b7ff55ed0f77dee4c0f5b670ed.zip
(_install_raw::ask_for_bad_or_missing) offer to not ask again about missing packages
-rw-r--r--perl-install/install/NEWS1
-rw-r--r--perl-install/install/pkgs.pm11
2 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 52b90e315..b314fb00a 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -3,6 +3,7 @@
- package installation:
o fix assuming "no" to continue on bad signatures once "do not ask
again" has been checked in
+ o offer to not ask again about missing packages
o unselect already suggested packages when performing a minimal
install if "no suggests" option was choosen (mga#5209)
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
});