summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-18 08:43:50 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-18 08:57:19 +0200
commitd486f37657a7640891d92103475c57ba6a3dff1a (patch)
tree3a12c0ddd2d9ef680bab8a6e09451fa6220d00f4
parented49466aa29794e1910a8c00f3a1cc6027724122 (diff)
downloadgemato-d486f37657a7640891d92103475c57ba6a3dff1a.tar.gz
openpgp: Use explicit prefix for temporary directories
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--gemato/openpgp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gemato/openpgp.py b/gemato/openpgp.py
index 48b7396..c854d1a 100644
--- a/gemato/openpgp.py
+++ b/gemato/openpgp.py
@@ -187,7 +187,7 @@ class OpenPGPEnvironment(OpenPGPSystemEnvironment):
def __init__(self, debug=False):
super(OpenPGPEnvironment, self).__init__(debug=debug)
- self._home = tempfile.mkdtemp()
+ self._home = tempfile.mkdtemp(prefix='gemato.')
with open(os.path.join(self._home, 'dirmngr.conf'), 'w') as f:
f.write('''# autogenerated by gemato