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=204d0038e3588ff5cc1c03842bba58dbef8d7b72 commit 204d0038e3588ff5cc1c03842bba58dbef8d7b72 Author: Guillem Jover <[email protected]> AuthorDate: Sun Nov 6 23:23:43 2022 +0100 Dpkg::OpenPGP::KeyHandle: Add new needs_keystore() method --- scripts/Dpkg/OpenPGP/ErrorCodes.pm | 3 +++ scripts/Dpkg/OpenPGP/KeyHandle.pm | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/scripts/Dpkg/OpenPGP/ErrorCodes.pm b/scripts/Dpkg/OpenPGP/ErrorCodes.pm index 764148cba..67bd39b4b 100644 --- a/scripts/Dpkg/OpenPGP/ErrorCodes.pm +++ b/scripts/Dpkg/OpenPGP/ErrorCodes.pm @@ -33,6 +33,7 @@ our @EXPORT = qw( OPENPGP_KEY_CANNOT_SIGN OPENPGP_MISSING_CMD + OPENPGP_NEEDS_KEYSTORE openpgp_errorcode_to_string ); @@ -61,6 +62,7 @@ use constant { OPENPGP_KEY_CANNOT_SIGN => 79, OPENPGP_MISSING_CMD => -1, + OPENPGP_NEEDS_KEYSTORE => -2, }; my %code2error = ( @@ -77,6 +79,7 @@ my %code2error = ( OPENPGP_KEY_CANNOT_SIGN() => N_('key is not signature-capable'), OPENPGP_MISSING_CMD() => N_('missing OpenPGP implementation'), + OPENPGP_NEEDS_KEYSTORE() => N_('specified key needs a keystore'), ); sub openpgp_errorcode_to_string diff --git a/scripts/Dpkg/OpenPGP/KeyHandle.pm b/scripts/Dpkg/OpenPGP/KeyHandle.pm index 44a872c45..e193290a5 100644 --- a/scripts/Dpkg/OpenPGP/KeyHandle.pm +++ b/scripts/Dpkg/OpenPGP/KeyHandle.pm @@ -65,6 +65,12 @@ sub _sanitize { return; } +sub needs_keystore { + my $self = shift; + + return 1; +} + sub set { my ($self, $type, $handle) = @_; -- Dpkg.Org's dpkg

