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 a30995f1..37e10d9c 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 refusing to insert the proper media
o notify callers when installation is canceled (#40358)
- urpmi
diff --git a/gurpmi2 b/gurpmi2
index 717e6aff..a7b1defb 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -174,7 +174,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