summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorFrédéric Pierret (fepitre) <frederic.pierret@qubes-os.org>2020-07-21 11:25:37 +0200
committerMichał Górny <mgorny@gentoo.org>2020-07-21 15:15:43 +0200
commit20350ab1c1f7536ffed08ba2d96020e54a3e4ef9 (patch)
tree279c3813e7947b1bdf165a6d6eb0c823b5eae8fc /utils
parent3a76746cbfff438a22ce541145d7f9df1db21572 (diff)
downloadgemato-20350ab1c1f7536ffed08ba2d96020e54a3e4ef9.tar.gz
Allow to override default 'gpg' client
The usecase here is to allow using qubes-gpg-client for signing manifest Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/gen_fast_metamanifest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/gen_fast_metamanifest.py b/utils/gen_fast_metamanifest.py
index 6ae9c07..0c4e43e 100755
--- a/utils/gen_fast_metamanifest.py
+++ b/utils/gen_fast_metamanifest.py
@@ -72,7 +72,8 @@ def make_toplevel(d, ts, pgp_key):
if pgp_key is not None:
cmd = []
- p = subprocess.Popen(['gpg', '--batch', '-u', pgp_key,
+ gpg = os.environ.get('GNUPG', 'gpg')
+ p = subprocess.Popen([gpg, '--batch', '-u', pgp_key,
'--armor', '--clearsign'],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,