From c5fca0bc726f26aa3a5f1e930f0d00131856c74e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 1 Jul 2008 09:42:37 +0000 Subject: do cancel when pressing the No button (#41648) --- NEWS | 2 ++ gurpmi2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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. is now /var/lib/urpmi//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 { -- cgit v1.2.1