summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-05-12 17:38:58 +0200
committerAaron Bauman <bman@gentoo.org>2018-05-13 15:18:09 -0400
commite7d687fddc685ab3e4213ced92b9d573e38bc7de (patch)
tree7160d629e0e094101ac909f4019e0a465da8f8b5 /app-crypt
parentx11-misc/qt5ct: Remove 0.31 (diff)
downloadgentoo-e7d687fddc685ab3e4213ced92b9d573e38bc7de.tar.gz
gentoo-e7d687fddc685ab3e4213ced92b9d573e38bc7de.tar.bz2
gentoo-e7d687fddc685ab3e4213ced92b9d573e38bc7de.zip
app-crypt/acme: remove unused patch(es)
Closes: https://github.com/gentoo/gentoo/pull/8374
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/acme/files/0.22.0-fix-client.patch55
1 files changed, 0 insertions, 55 deletions
diff --git a/app-crypt/acme/files/0.22.0-fix-client.patch b/app-crypt/acme/files/0.22.0-fix-client.patch
deleted file mode 100644
index 589781b0a8d5..000000000000
--- a/app-crypt/acme/files/0.22.0-fix-client.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-From 0131c649d057a513a6bdc0b4b6eac7ea0bd9a9e8 Mon Sep 17 00:00:00 2001
-From: Brad Warren <bmw@users.noreply.github.com>
-Date: Fri, 16 Mar 2018 18:44:23 -0700
-Subject: [PATCH] Fix acme.client.Client.__init__ (#5747) (#5748)
-
-* fixes #5738
-
-* add test to prevent regressions
-
-(cherry picked from commit ba6bdb50998bd55aeef7972a5c839560e02142f3)
----
- acme/acme/client.py | 5 +++--
- acme/acme/client_test.py | 10 ++++++++++
- 2 files changed, 13 insertions(+), 2 deletions(-)
-
-diff --git acme/acme/client.py acme/acme/client.py
-index 9e2478afe4..19615b087b 100644
---- acme/acme/client.py
-+++ acme/acme/client.py
-@@ -259,11 +259,12 @@ def __init__(self, directory, key, alg=jose.RS256, verify_ssl=True,
- """
- # pylint: disable=too-many-arguments
- self.key = key
-- self.net = ClientNetwork(key, alg=alg, verify_ssl=verify_ssl) if net is None else net
-+ if net is None:
-+ net = ClientNetwork(key, alg=alg, verify_ssl=verify_ssl)
-
- if isinstance(directory, six.string_types):
- directory = messages.Directory.from_json(
-- self.net.get(directory).json())
-+ net.get(directory).json())
- super(Client, self).__init__(directory=directory,
- net=net, acme_version=1)
-
-diff --git acme/acme/client_test.py acme/acme/client_test.py
-index 00b9e19dd0..be08c2919f 100644
---- acme/acme/client_test.py
-+++ acme/acme/client_test.py
-@@ -299,6 +299,16 @@ def test_init_downloads_directory(self):
- directory=uri, key=KEY, alg=jose.RS256, net=self.net)
- self.net.get.assert_called_once_with(uri)
-
-+ @mock.patch('acme.client.ClientNetwork')
-+ def test_init_without_net(self, mock_net):
-+ mock_net.return_value = mock.sentinel.net
-+ alg = jose.RS256
-+ from acme.client import Client
-+ self.client = Client(
-+ directory=self.directory, key=KEY, alg=alg)
-+ mock_net.called_once_with(KEY, alg=alg, verify_ssl=True)
-+ self.assertEqual(self.client.net, mock.sentinel.net)
-+
- def test_register(self):
- # "Instance of 'Field' has no to_json/update member" bug:
- # pylint: disable=no-member