This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=93d9c1435e537b5c03364db0281dfc6513995553

commit 93d9c1435e537b5c03364db0281dfc6513995553
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Feb 2 20:15:47 2023 +0100

    Dpkg::OpenPGP::ErrorCodes: Add new OPENPGP_CMD_CANNOT_SIGN error code
    
    Add a new error code to be used by gpg when it fails to sign.
---
 scripts/Dpkg/OpenPGP/ErrorCodes.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/Dpkg/OpenPGP/ErrorCodes.pm 
b/scripts/Dpkg/OpenPGP/ErrorCodes.pm
index 67bd39b4b..b782e8891 100644
--- a/scripts/Dpkg/OpenPGP/ErrorCodes.pm
+++ b/scripts/Dpkg/OpenPGP/ErrorCodes.pm
@@ -34,6 +34,7 @@ our @EXPORT = qw(
 
     OPENPGP_MISSING_CMD
     OPENPGP_NEEDS_KEYSTORE
+    OPENPGP_CMD_CANNOT_SIGN
 
     openpgp_errorcode_to_string
 );
@@ -63,6 +64,7 @@ use constant {
 
     OPENPGP_MISSING_CMD => -1,
     OPENPGP_NEEDS_KEYSTORE => -2,
+    OPENPGP_CMD_CANNOT_SIGN => -3,
 };
 
 my %code2error = (
@@ -80,6 +82,7 @@ my %code2error = (
 
     OPENPGP_MISSING_CMD() => N_('missing OpenPGP implementation'),
     OPENPGP_NEEDS_KEYSTORE() => N_('specified key needs a keystore'),
+    OPENPGP_CMD_CANNOT_SIGN() => N_('OpenPGP backend command cannot sign'),
 );
 
 sub openpgp_errorcode_to_string

-- 
Dpkg.Org's dpkg

Reply via email to