diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-28 10:32:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-28 10:32:42 +0100 |
commit | 5d1fadfaf82053fc45d6120cb990be1ffb05fc8d (patch) | |
tree | 8d36fff15d7c7ebb6834f324a115e82f24cdbaf2 /app-crypt/gpgme/files | |
parent | 5684fb5128e63f45e3c4a58a58ba9b2a124a2a28 (diff) |
gentoo auto-resync : 28:10:2023 - 10:32:42
Diffstat (limited to 'app-crypt/gpgme/files')
-rw-r--r-- | app-crypt/gpgme/files/gpgme-1.23.1-tests-gnupg-no-tofu.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-crypt/gpgme/files/gpgme-1.23.1-tests-gnupg-no-tofu.patch b/app-crypt/gpgme/files/gpgme-1.23.1-tests-gnupg-no-tofu.patch new file mode 100644 index 000000000000..831f68c8ea18 --- /dev/null +++ b/app-crypt/gpgme/files/gpgme-1.23.1-tests-gnupg-no-tofu.patch @@ -0,0 +1,26 @@ +https://dev.gnupg.org/T6778 +--- a/lang/python/tests/support.py ++++ b/lang/python/tests/support.py +@@ -46,13 +46,15 @@ def is_gpg_version(version): + + + def have_tofu_support(ctx, some_uid): +- keys = list( +- ctx.keylist( +- some_uid, +- mode=(gpg.constants.keylist.mode.LOCAL | +- gpg.constants.keylist.mode.WITH_TOFU))) +- return len(keys) > 0 +- ++ try: ++ keys = list( ++ ctx.keylist( ++ some_uid, ++ mode=(gpg.constants.keylist.mode.LOCAL | ++ gpg.constants.keylist.mode.WITH_TOFU))) ++ return len(keys) > 0 ++ except gpg.errors.GPGMEError: ++ return False + + # Skip the Python tests for GnuPG < 2.1.12. Prior versions do not + # understand the command line flags that we assume exist. C.f. issue |