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=8eaf5f4502c279ee6d58a35a2918f321f3d6c31b commit 8eaf5f4502c279ee6d58a35a2918f321f3d6c31b Author: Guillem Jover <[email protected]> AuthorDate: Fri Jan 3 00:34:42 2025 +0100 Dpkg::OpenPGP::Backend::Sequoia: Handle all KeyHandle types in inline_sign() We need to handle all different KeyHandle types, and pass them to «sq» using the appropriate option for each type. Ref: #1091915 --- scripts/Dpkg/OpenPGP/Backend/Sequoia.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/Dpkg/OpenPGP/Backend/Sequoia.pm b/scripts/Dpkg/OpenPGP/Backend/Sequoia.pm index 280593cd9..ceb18d83c 100644 --- a/scripts/Dpkg/OpenPGP/Backend/Sequoia.pm +++ b/scripts/Dpkg/OpenPGP/Backend/Sequoia.pm @@ -134,7 +134,13 @@ sub inline_sign my @opts; push @opts, '--cleartext'; - push @opts, '--signer-file', $key->handle; + if ($key->type eq 'keyfile') { + push @opts, '--signer-file', $key->handle; + } elsif ($key->type eq 'userid') { + push @opts, '--signer-userid', $key->handle; + } else { + push @opts, '--signer', $key->handle; + } push @opts, '--output', $inlinesigned; my $rc = $self->_sq_exec('sign', @opts, $data); -- Dpkg.Org's dpkg

