diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-05-15 13:19:56 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-05-15 13:19:56 +0100 |
commit | d302a5d7fc9caafba5c8a404f2891bb6ccdec311 (patch) | |
tree | 2a3ee43f080d1d0086964de8c29ccf1021fdfda7 /app-crypt/acme | |
parent | ea31ad0ed5501d0bf92267c35beaf06ac016bad2 (diff) |
gentoo resync : 15.05.2018
Diffstat (limited to 'app-crypt/acme')
-rw-r--r-- | app-crypt/acme/Manifest | 1 | ||||
-rw-r--r-- | app-crypt/acme/files/0.22.0-fix-client.patch | 55 |
2 files changed, 0 insertions, 56 deletions
diff --git a/app-crypt/acme/Manifest b/app-crypt/acme/Manifest index 7d8c752f6078..f672e875681e 100644 --- a/app-crypt/acme/Manifest +++ b/app-crypt/acme/Manifest @@ -1,4 +1,3 @@ -AUX 0.22.0-fix-client.patch 2178 BLAKE2B 5befa9f229c118fdd19758b7f3da05570ed685fdc7ceb733a15a0a64e6865ecd51f2dc792db402ca1c8dbd5f8ee586ba9bbf620c4c94b2b2b0545c8c3abc23ee SHA512 5fde6c834b96116a8c4c94d95d5e75ccde7b8345108862730834cfa265f6a58f4ed39a57de0961b9ca4904810313771c43a9a90809e3faa5d1c95105f34c6ea9 DIST certbot-0.21.1.tar.gz 1105663 BLAKE2B 7c36ec0504a144a2325528079374d103f6214252c01ba0bcaf26378950fe5cd54010abe756d80b1c0c30740442a184417f0b2bd7ffea91edeb70c59dfee2349e SHA512 6f3ffba7dc06bcc2a6b9835906331753ee2715192e7a49562314480069f22e4a66bb26f04dc4bbdfb0ab40998220d0c9b77fb0351e042116b02996fb2da699d2 DIST certbot-0.23.0.tar.gz 1144448 BLAKE2B 820c4e3a0245a4ccda90884e38093d4f95ebf8c06ccb93c80a277a69074a6ab3bac3451f4e8f9af6c1c36edd9d871e10de9240d847e6eeac5fb8e0fbcdb3cdcb SHA512 397562fa7f5ef5daea8ccf70dc21898f8b792dc6a07aa24035fa378da8af3dd5d0734c3fbf6080c28d17f050db46ec0ea637be81d4ce648fa5ab2add2cfd41ed DIST certbot-0.24.0.tar.gz 1149694 BLAKE2B 7c57d59ced97de77e0f98eb11a2bba418ee81ba0eb4506ebc010cb0060c92820617ba2a3464dd398bfec6dc86f4c2dc8e22461d76ae51ccfbb97afab3bbb3681 SHA512 b067da7eea54deb72ff4b516382cbe480ffebcb378489a2b0c52955f7399401d936d8d6587d88473d6f4fa9e864de94514941bde9727a5babbf2d6211ea61b20 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 |