From ba06798039816c9687949c136ac7a806557eeb08 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 24 Mar 2009 14:58:23 +0000 Subject: Change error code when some packages couldn't be installed --- pod/urpmi.8.pod | 4 ++++ urpmi | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pod/urpmi.8.pod b/pod/urpmi.8.pod index 7e274c91..5cd5dc8e 100644 --- a/pod/urpmi.8.pod +++ b/pod/urpmi.8.pod @@ -505,6 +505,10 @@ No package installed (when using --expect-install) Bad signature +=item 17 + +Some packages couldn't be installed or upgraded + =back =head1 BUG REPORTS diff --git a/urpmi b/urpmi index f9927e2f..f61d4b5b 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 1; + $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 17; } } @@ -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 1; + $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 17; } } -- cgit v1.2.1