From 53d4163b636570e38f76b863c4f24e98da680f52 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 7 Oct 2008 07:22:27 +0000 Subject: exit code 15 is already used for --expect-install, use exit code 16 for bad signature --- pod/urpmi.8.pod | 4 ++++ urpm/main_loop.pm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pod/urpmi.8.pod b/pod/urpmi.8.pod index 3f07fa16..7e274c91 100644 --- a/pod/urpmi.8.pod +++ b/pod/urpmi.8.pod @@ -499,6 +499,10 @@ Some files are missing and all transactions failed. =item 15 +No package installed (when using --expect-install) + +=item 16 + Bad signature =back diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index 546c0828..bdeb1aac 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -143,7 +143,7 @@ foreach my $set (@{$state->{transaction} || []}) { : N("The following packages have bad signatures"); my $msg2 = N("Do you want to continue installation ?"); my $p = join "\n", @bad_signatures; - $callbacks->{bad_signature}->("$msg:\n$p\n", $msg2) or return 15; + $callbacks->{bad_signature}->("$msg:\n$p\n", $msg2) or return 16; } } -- cgit v1.2.1