From 7b90b8cc369aa1be2cc55027bd75aad3ac59ca6a Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 26 Mar 2009 15:07:13 +0000 Subject: When the user aborts the installation due to awarning message, return non 0 error code --- gurpmi2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gurpmi2 b/gurpmi2 index 7c0685a4..efa859d1 100755 --- a/gurpmi2 +++ b/gurpmi2 @@ -211,7 +211,7 @@ sub ask_continue { $urpm->{log}($msg); my $continue_button = Gtk2::Button->new(but(N("_Ok"))); my $quit_button = Gtk2::Button->new(but(N("_Abort"))); - $quit_button->signal_connect(clicked => sub { $urpm->{log}("=> cancel"); &quit(); } ); + $quit_button->signal_connect(clicked => sub { $urpm->{log}("=> cancel"); &quit(); exit 1}); $continue_button->signal_connect(clicked => sub { $urpm->{log}("=> ok"); goto &$nextclosure }); add_button_box($vbox, $quit_button, $continue_button); change_mainw($vbox); -- cgit v1.2.1