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=c511f466d0fc7839b96c2a8ebbb014558d77fd14

commit c511f466d0fc7839b96c2a8ebbb014558d77fd14 (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Feb 2 20:16:41 2023 +0100

    Dpkg::OpenPGP::Backend::GnuPG: On signing failure use 
OPENPGP_CMD_CANNOT_SIGN
    
    The OPENPGP_KEY_CANNOT_SIGN is specified by SOP to mean that the key is
    not capable of signing, but in this case the command itself cannot sign
    for whatever reason, for example because it cannot find the needed
    key, the key is expired or any other such error.
    
    Closes: #1030271
---
 scripts/Dpkg/OpenPGP/Backend/GnuPG.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm 
b/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm
index 7cc7bc788..53c317c0b 100644
--- a/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm
+++ b/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm
@@ -294,7 +294,7 @@ sub inline_sign {
     push @exec, '--output', $inlinesigned;
 
     my $rc = $self->_gpg_exec(@exec, '--clearsign', $data);
-    return OPENPGP_KEY_CANNOT_SIGN if $rc;
+    return OPENPGP_CMD_CANNOT_SIGN if $rc;
     return OPENPGP_OK;
 }
 

-- 
Dpkg.Org's dpkg

Reply via email to