diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python-pygpgme')
3 files changed, 12 insertions, 6 deletions
diff --git a/meta-python/recipes-devtools/python/python-pygpgme/0001-reflect-2.1-reporting-for-key-imports.patch b/meta-python/recipes-devtools/python/python-pygpgme/0001-reflect-2.1-reporting-for-key-imports.patch index f5870372a1..1f31cb805e 100644 --- a/meta-python/recipes-devtools/python/python-pygpgme/0001-reflect-2.1-reporting-for-key-imports.patch +++ b/meta-python/recipes-devtools/python/python-pygpgme/0001-reflect-2.1-reporting-for-key-imports.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 1c1812def711803382cc28caea1f35fb7ef774b0 Mon Sep 17 00:00:00 2001 | 1 | From ed44474c11f577c1644910964a917a4cf701bb0f Mon Sep 17 00:00:00 2001 |
| 2 | From: Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2 | From: Daniel Kahn Gillmor <dkg@fifthhorseman.net> |
| 3 | Date: Tue, 26 Jan 2016 14:24:26 -0500 | 3 | Date: Tue, 26 Jan 2016 14:24:26 -0500 |
| 4 | Subject: [PATCH 1/5] reflect 2.1 reporting for key imports | 4 | Subject: [PATCH] reflect 2.1 reporting for key imports |
| 5 | 5 | ||
| 6 | GnuPG 2.1 changes how it reports key imports. These changes should | 6 | GnuPG 2.1 changes how it reports key imports. These changes should |
| 7 | make the pygpgme test suite compatible with GnuPG 2.1. | 7 | make the pygpgme test suite compatible with GnuPG 2.1. |
| @@ -12,6 +12,7 @@ https://lists.gnupg.org/pipermail/gnupg-devel/2016-January/030718.html | |||
| 12 | Upstream-Status: Backport | 12 | Upstream-Status: Backport |
| 13 | 13 | ||
| 14 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> | 14 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> |
| 15 | |||
| 15 | --- | 16 | --- |
| 16 | tests/test_import.py | 22 +++++++++++----------- | 17 | tests/test_import.py | 22 +++++++++++----------- |
| 17 | 1 file changed, 11 insertions(+), 11 deletions(-) | 18 | 1 file changed, 11 insertions(+), 11 deletions(-) |
| @@ -86,3 +87,4 @@ index 10eb816..597eb47 100644 | |||
| 86 | + None, gpgme.IMPORT_NEW | gpgme.IMPORT_SECRET)) | 87 | + None, gpgme.IMPORT_NEW | gpgme.IMPORT_SECRET)) |
| 87 | self.assertEqual(result.imports[3], | 88 | self.assertEqual(result.imports[3], |
| 88 | ('93C2240D6B8AA10AB28F701D2CF46B7FC97E6B0F', | 89 | ('93C2240D6B8AA10AB28F701D2CF46B7FC97E6B0F', |
| 90 | None, gpgme.IMPORT_NEW)) | ||
diff --git a/meta-python/recipes-devtools/python/python-pygpgme/0002-passphrase_cb-is-deprecated.patch b/meta-python/recipes-devtools/python/python-pygpgme/0002-passphrase_cb-is-deprecated.patch index ccd941f7bb..c18cf3feba 100644 --- a/meta-python/recipes-devtools/python/python-pygpgme/0002-passphrase_cb-is-deprecated.patch +++ b/meta-python/recipes-devtools/python/python-pygpgme/0002-passphrase_cb-is-deprecated.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From dc75482af095d667a4a92655c4e7eb312e80c42d Mon Sep 17 00:00:00 2001 | 1 | From ba0dc8273e4f83bcd2d43baa5910aae34b93048c Mon Sep 17 00:00:00 2001 |
| 2 | From: Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2 | From: Daniel Kahn Gillmor <dkg@fifthhorseman.net> |
| 3 | Date: Mon, 1 Feb 2016 19:25:12 -0500 | 3 | Date: Mon, 1 Feb 2016 19:25:12 -0500 |
| 4 | Subject: [PATCH 2/5] passphrase_cb is deprecated | 4 | Subject: [PATCH] passphrase_cb is deprecated |
| 5 | 5 | ||
| 6 | https://bugs.gnupg.org/gnupg/issue767 indicates that | 6 | https://bugs.gnupg.org/gnupg/issue767 indicates that |
| 7 | gpgme_set_passphrase_cb is a deprecated corner of the API and that | 7 | gpgme_set_passphrase_cb is a deprecated corner of the API and that |
| @@ -19,6 +19,7 @@ test suite to be able to make those tests. | |||
| 19 | Upstream-Status: Backport | 19 | Upstream-Status: Backport |
| 20 | 20 | ||
| 21 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> | 21 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> |
| 22 | |||
| 22 | --- | 23 | --- |
| 23 | tests/util.py | 8 +++++++- | 24 | tests/util.py | 8 +++++++- |
| 24 | 1 file changed, 7 insertions(+), 1 deletion(-) | 25 | 1 file changed, 7 insertions(+), 1 deletion(-) |
| @@ -48,3 +49,4 @@ index cd803c2..86892ca 100644 | |||
| 48 | + | 49 | + |
| 49 | # import requested keys into the keyring | 50 | # import requested keys into the keyring |
| 50 | ctx = gpgme.Context() | 51 | ctx = gpgme.Context() |
| 52 | for key in self.import_keys: | ||
diff --git a/meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch b/meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch index 462f442286..6acb68bfe7 100644 --- a/meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch +++ b/meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 024fe219582143017b2f02bc924c0ed107b63619 Mon Sep 17 00:00:00 2001 | 1 | From 579b5930e15de8855bf63b3c20b6c3aaf894c3eb Mon Sep 17 00:00:00 2001 |
| 2 | From: Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2 | From: Daniel Kahn Gillmor <dkg@fifthhorseman.net> |
| 3 | Date: Mon, 1 Feb 2016 19:27:59 -0500 | 3 | Date: Mon, 1 Feb 2016 19:27:59 -0500 |
| 4 | Subject: [PATCH 3/5] handle generic error when no passphrase callback present | 4 | Subject: [PATCH] handle generic error when no passphrase callback present |
| 5 | 5 | ||
| 6 | apparently gpg 2.1 returns ERR_GENERAL right now if the pinentry was | 6 | apparently gpg 2.1 returns ERR_GENERAL right now if the pinentry was |
| 7 | in loopback mode and no passphrase callback was supplied. Earlier | 7 | in loopback mode and no passphrase callback was supplied. Earlier |
| @@ -10,6 +10,7 @@ versions supplied ERR_BAD_PASSPHRASE. | |||
| 10 | Upstream-Status: Backport | 10 | Upstream-Status: Backport |
| 11 | 11 | ||
| 12 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> | 12 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> |
| 13 | |||
| 13 | --- | 14 | --- |
| 14 | tests/test_passphrase.py | 2 +- | 15 | tests/test_passphrase.py | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| @@ -26,3 +27,4 @@ index 0a235e9..35b3c59 100644 | |||
| 26 | + self.assertEqual(exc.args[1], gpgme.ERR_GENERAL) | 27 | + self.assertEqual(exc.args[1], gpgme.ERR_GENERAL) |
| 27 | else: | 28 | else: |
| 28 | self.fail('gpgme.GpgmeError not raised') | 29 | self.fail('gpgme.GpgmeError not raised') |
| 30 | |||
