summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-07-01 09:42:37 +0000
committerThierry Vignaud <tv@mandriva.org>2008-07-01 09:42:37 +0000
commitc5fca0bc726f26aa3a5f1e930f0d00131856c74e (patch)
tree875343493a99159ac0698af870a4ddcd98bad1dc
parent24558d3592895c919ac75cae6fb83e16bd9397a6 (diff)
downloadurpmi-c5fca0bc726f26aa3a5f1e930f0d00131856c74e.tar
urpmi-c5fca0bc726f26aa3a5f1e930f0d00131856c74e.tar.gz
urpmi-c5fca0bc726f26aa3a5f1e930f0d00131856c74e.tar.bz2
urpmi-c5fca0bc726f26aa3a5f1e930f0d00131856c74e.tar.xz
urpmi-c5fca0bc726f26aa3a5f1e930f0d00131856c74e.zip
do cancel when pressing the No button (#41648)
-rw-r--r--NEWS2
-rwxr-xr-xgurpmi22
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 108f2d8e..55c06c87 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@
for eg: /var/lib/urpmi/synthesis.hdlist.<medium-name> is now
/var/lib/urpmi/<medium-name>/synthesis.hdlist.cz
it allows easier medium update without using urpmi.update (#31893)
+- gurpmi:
+ o do cancel when pressing the 'No' button (#41648)
- urpmi:
o "missing file" and "bad rpms" errors are reported asap
and are fatal errors unless the user wants to go on anyway (or --force)
diff --git a/gurpmi2 b/gurpmi2
index 34f02aa7..db6991a9 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -202,7 +202,7 @@ sub ask_continue_blocking {
my $w = Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'question', 'yes-no', $msg);
my $answer = $w->run;
$w->destroy;
- quit() if $answer eq 'no';
+ exit(1) if $answer eq 'no';
}
sub do_install {