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=6f3b858e4e3a1823f3ce3a0e37467e9dafe9ba5b

commit 6f3b858e4e3a1823f3ce3a0e37467e9dafe9ba5b (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Nov 24 03:54:41 2022 +0100

    Dpkg::OpenPGP::Backend::GnuPG: Use has_verify_cmd() instead of ad-hoc checks
    
    This is clearer, and in addition fixes a logic inversion issue in the
    check.
    
    Fixes: commit f10f1fbe9e52a6be500504f23d8f5b4a429e9d53
    Changelog: silent
---
 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 b35dfc5ae..5a235b2e0 100644
--- a/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm
+++ b/scripts/Dpkg/OpenPGP/Backend/GnuPG.pm
@@ -206,7 +206,7 @@ sub _gpg_options_weak_digests {
 sub _gpg_verify {
     my ($self, $signeddata, $sig, $data, @certs) = @_;
 
-    return OPENPGP_MISSING_CMD if ! $self->{cmdv} || ! $self->{cmd};
+    return OPENPGP_MISSING_CMD if ! $self->has_verify_cmd();
 
     my $gpg_home = File::Temp->newdir('dpkg-gpg-verify.XXXXXXXX', TMPDIR => 1);
 

-- 
Dpkg.Org's dpkg

Reply via email to