summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/interactive.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm
index d3710dfca..4f5ab4c44 100644
--- a/perl-install/interactive.pm
+++ b/perl-install/interactive.pm
@@ -355,11 +355,13 @@ sub ask_from_ {
my ($o, $common, $l) = @_;
ask_from_normalize($o, $common, $l);
@$l or return 1;
+ $common->{cancel} = '' if !defined wantarray();
ask_from_real($o, $common, $l);
}
sub ask_from_no_check {
my ($o, $common, $l) = @_;
ask_from_normalize($o, $common, $l);
+ $common->{cancel} = '' if !defined wantarray();
$o->ask_fromW($common, partition { !$_->{advanced} } @$l);
}
sub ask_from_real {