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=73bac54caefb379ecdba9bb2c3159bb50ea8bb8d commit 73bac54caefb379ecdba9bb2c3159bb50ea8bb8d Author: Guillem Jover <[email protected]> AuthorDate: Fri Jul 29 23:25:39 2022 +0200 Dpkg::OpenPGP::Backend: Add new has_verify_cmd() method This is needed to handle backends that have a special command used only for signature verification. --- scripts/Dpkg/OpenPGP/Backend.pm | 6 ++++++ scripts/Dpkg/OpenPGP/Backend/GnuPG.pm | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/scripts/Dpkg/OpenPGP/Backend.pm b/scripts/Dpkg/OpenPGP/Backend.pm index 39d1cf475..c654f830b 100644 --- a/scripts/Dpkg/OpenPGP/Backend.pm +++ b/scripts/Dpkg/OpenPGP/Backend.pm @@ -64,6 +64,12 @@ sub has_backend_cmd { return defined $self->{cmd}; } +sub has_verify_cmd { + my $self = shift; + + return defined $self->{cmd}; +} + sub has_keystore { my $self = shift; diff --git a/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm b/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm index e60826575..f5ba0ac87 100644 --- a/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm +++ b/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm @@ -48,6 +48,12 @@ sub has_keystore { return 0; } +sub has_verify_cmd { + my $self = shift; + + return defined $self->{cmdv} || defined $self->{cmd}; +} + sub get_trusted_keyrings { my $self = shift; -- Dpkg.Org's dpkg

