summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2020-07-17 13:29:30 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2020-08-12 22:57:57 -0700
commit7302dd834f4eb3166115543c9ad8169218aa6c62 (patch)
tree8ae9248a4289f333a8853963bb229777e6c3e7cd
parent0f25462ea63119e3378da11f1e511bedee15b07d (diff)
downloadspack-7302dd834f4eb3166115543c9ad8169218aa6c62.tar.gz
spack-7302dd834f4eb3166115543c9ad8169218aa6c62.tar.bz2
spack-7302dd834f4eb3166115543c9ad8169218aa6c62.tar.xz
spack-7302dd834f4eb3166115543c9ad8169218aa6c62.zip
allow GNUPGHOME to come from SPACK_GNUPGHOME in env, if set (#17139)
-rw-r--r--lib/spack/spack/util/gpg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/util/gpg.py b/lib/spack/spack/util/gpg.py
index 29b2add852..e6b7f56741 100644
--- a/lib/spack/spack/util/gpg.py
+++ b/lib/spack/spack/util/gpg.py
@@ -13,7 +13,7 @@ from spack.util.executable import which
_gnupg_version_re = r"^gpg \(GnuPG\) (.*)$"
-GNUPGHOME = spack.paths.gpg_path
+GNUPGHOME = os.getenv('SPACK_GNUPGHOME', spack.paths.gpg_path)
def parse_keys_output(output):