summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xgurpmi22
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d79f4f28..b97f5ef8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- gurpmi
+ o fix exit code if canceling when requested to select a choice
o fix exit code if not refusing to insert the proper media
o notify callers when installation is canceled (#40358)
diff --git a/gurpmi2 b/gurpmi2
index 52994fb8..7fc0ae27 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -179,7 +179,7 @@ sub ask_choice {
foreach (@radios) { last if $_->get_active; ++$n }
}
$d->destroy;
- exit(0) if $_[1] == 0; #- "cancel"
+ exit(1) if $_[1] == 0; #- "cancel"
});
$radios[0]->set_active(1);
$d->set_default_response(1); # defaults to ok