From d6fad11753056c1cd2149afc9be458bd3b6e8593 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 16 Mar 2018 12:27:49 +0100 Subject: openpgp: Honor user's http_proxy setting Solution suggested by Patrik Osgnach. Bug: https://bugs.gentoo.org/649642 --- gemato/openpgp.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gemato/openpgp.py b/gemato/openpgp.py index de3139a..177ff43 100644 --- a/gemato/openpgp.py +++ b/gemato/openpgp.py @@ -184,6 +184,12 @@ class OpenPGPEnvironment(OpenPGPSystemEnvironment): super(OpenPGPEnvironment, self).__init__() self._home = tempfile.mkdtemp() + with open(os.path.join(self._home, 'dirmngr.conf'), 'w') as f: + f.write('''# autogenerated by gemato + +# honor user's http_proxy setting +honor-http-proxy +''') with open(os.path.join(self._home, 'gpg.conf'), 'w') as f: f.write('''# autogenerated by gemato -- cgit v1.2.3