summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-03-16 12:27:49 +0100
committerMichał Górny <mgorny@gentoo.org>2018-03-16 12:27:49 +0100
commitd6fad11753056c1cd2149afc9be458bd3b6e8593 (patch)
tree459b97a6002c0a7142b46d48eb14afc7ce07be0a
parent6dff07c2f93212d50c3bb4471e2ce5d18d63a54a (diff)
downloadgemato-d6fad11753056c1cd2149afc9be458bd3b6e8593.tar.gz
openpgp: Honor user's http_proxy setting
Solution suggested by Patrik Osgnach. Bug: https://bugs.gentoo.org/649642
-rw-r--r--gemato/openpgp.py6
1 files changed, 6 insertions, 0 deletions
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