diff options
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r-- | perl-install/install/pkgs.pm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index e4caaeb0d..348201c10 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -836,12 +836,13 @@ sub _install_raw { log::l($msg2); return 0 if $packages->{options}{auto}; state $do_not_ask; - return if $do_not_ask; - $::o->ask_from_({ messages => "$msg\n\n$msg2" }, [ - { val => \$do_not_ask, - type => 'bool', text => N("Do not ask again"), - }, - ]); + state $answer; + return $answer if $do_not_ask; + $answer = $::o->ask_from_({ messages => "$msg\n\n$msg2" }, [ + { val => \$do_not_ask, + type => 'bool', text => N("Do not ask again"), + }, + ]); }, copy_removable => sub { my ($medium) = @_; |