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 3f06f86d..a30995f1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- gurpmi
+ o fix exit code if refusing to insert the proper media
o notify callers when installation is canceled (#40358)
- urpmi
o fix displaying "files are missing" (regression introduced in 5.6)
diff --git a/gurpmi2 b/gurpmi2
index 34f02aa7..717e6aff 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -279,7 +279,7 @@ sub do_install_3 () {
);
my $response = $w->run;
$w->destroy;
- exit 0 if $response eq 'cancel';
+ exit 1 if $response eq 'cancel';
1;
},
trans_log => sub {