summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-07 07:22:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-07 07:22:27 +0000
commit53d4163b636570e38f76b863c4f24e98da680f52 (patch)
treed719742a528de31f47e081337de99bf610b8cce0
parentcd1742ec8aaff0a17c80dd03244c4a1b25686b25 (diff)
downloadurpmi-53d4163b636570e38f76b863c4f24e98da680f52.tar
urpmi-53d4163b636570e38f76b863c4f24e98da680f52.tar.gz
urpmi-53d4163b636570e38f76b863c4f24e98da680f52.tar.bz2
urpmi-53d4163b636570e38f76b863c4f24e98da680f52.tar.xz
urpmi-53d4163b636570e38f76b863c4f24e98da680f52.zip
exit code 15 is already used for --expect-install, use exit code 16 for bad signature
-rw-r--r--pod/urpmi.8.pod4
-rw-r--r--urpm/main_loop.pm2
2 files changed, 5 insertions, 1 deletions
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;
}
}