From aec6a225f7bba5f1e2219527039e2ea39ffa1f54 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 10 2020 12:26:11 +0000 Subject: Apply patch gpgme-build-with-gnupg-2.2.19.patch patch_name: gpgme-build-with-gnupg-2.2.19.patch present_in_specfile: true location_in_specfile: 5 --- diff --git a/src/engine-gpg.c b/src/engine-gpg.c index a1e40fe..61c6fbb 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -2923,6 +2923,12 @@ gpg_keylist_build_options (engine_gpg_t gpg, int secret_only, err = add_arg (gpg, "--with-colons"); + if (have_gpg_version (gpg, "2.2.19")) + { + if (!err) + err = add_arg (gpg, "--with-keygrip"); + } + /* Since gpg 2.1.15 fingerprints are always printed, thus there is * no more need to explicitly request them. */ if (!have_gpg_version (gpg, "2.1.15")) diff --git a/tests/json/t-keylist-secret.out.json b/tests/json/t-keylist-secret.out.json index 5da20db..f997fd8 100644 --- a/tests/json/t-keylist-secret.out.json +++ b/tests/json/t-keylist-secret.out.json @@ -91,7 +91,6 @@ "can_sign": true, "can_certify": true, "can_authenticate": true, - "secret": true, "is_qualified": false, "protocol": "OpenPGP", "fingerprint": "D695676BDCEDCC2CDD6152BCFE180B1DA9E3B0B2",