summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-03-26 15:07:13 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-03-26 15:07:13 +0000
commit7b90b8cc369aa1be2cc55027bd75aad3ac59ca6a (patch)
treefb27d8a642ba7254368dce322c50cc8a83c00023
parent5cf5bb66b08104df3327c21439cacab1cc043022 (diff)
downloadurpmi-7b90b8cc369aa1be2cc55027bd75aad3ac59ca6a.tar
urpmi-7b90b8cc369aa1be2cc55027bd75aad3ac59ca6a.tar.gz
urpmi-7b90b8cc369aa1be2cc55027bd75aad3ac59ca6a.tar.bz2
urpmi-7b90b8cc369aa1be2cc55027bd75aad3ac59ca6a.tar.xz
urpmi-7b90b8cc369aa1be2cc55027bd75aad3ac59ca6a.zip
When the user aborts the installation due to awarning message, return non 0 error code
-rwxr-xr-xgurpmi22
1 files changed, 1 insertions, 1 deletions
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);