From caab74b821298d22d677a9df68a8e07ece8aad34 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 24 Mar 2009 10:00:32 +0000 Subject: Return error code when the install is aborted during an upgrade --- urpmi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urpmi b/urpmi index fec56f1a..f9927e2f 100755 --- a/urpmi +++ b/urpmi @@ -493,7 +493,7 @@ that are older than the installed ones:\n%s", $list); } else { my $noexpr = N("Nn"); $msg .= N("\nContinue installation anyway?"); - $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 0; + $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 1; } } @@ -508,7 +508,7 @@ if (@ask_unselect) { } else { my $noexpr = N("Nn"); $msg .= N("\nContinue installation anyway?"); - $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 0; + $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 1; } } -- cgit v1.2.1