summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2020-01-30 11:13:36 -0800
committerGitHub <noreply@github.com>2020-01-30 11:13:36 -0800
commitb2adcdb389ed684fd4dbb15e44da163c816548a7 (patch)
tree6913db09cda204d8185f9313d8fc15db02856eba /lib
parent1e0408d05ac7bf06f2634bd298d059852fc2f87d (diff)
downloadspack-b2adcdb389ed684fd4dbb15e44da163c816548a7.tar.gz
spack-b2adcdb389ed684fd4dbb15e44da163c816548a7.tar.bz2
spack-b2adcdb389ed684fd4dbb15e44da163c816548a7.tar.xz
spack-b2adcdb389ed684fd4dbb15e44da163c816548a7.zip
Bugfix: put environment lock in the right place (#14692)
Locate the environment lock in the hidden environment directory rather than the root of the environment.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/environment.py b/lib/spack/spack/environment.py
index dd2d932849..fff1485e3c 100644
--- a/lib/spack/spack/environment.py
+++ b/lib/spack/spack/environment.py
@@ -724,7 +724,7 @@ class Environment(object):
"""The location of the lock file used to synchronize multiple
processes updating the same environment.
"""
- return os.path.join(self.path, 'transaction_lock')
+ return os.path.join(self.env_subdir_path, 'transaction_lock')
@property
def lock_path(self):