fix #249 (tmp spack-stage directories conflict)

This commit is contained in:
Mike Nolta 2015-12-21 18:48:30 -05:00
parent c3aaf005e2
commit 2ba6bb21fb

View File

@ -112,8 +112,9 @@
tmp_dirs = []
_default_tmp = tempfile.gettempdir()
if _default_tmp != os.getcwd():
tmp_dirs.append(os.path.join(_default_tmp, 'spack-stage'))
tmp_dirs.append('/nfs/tmp2/%u/spack-stage')
tmp_dirs = [ join_path(_default_tmp, '%u', 'spack-stage'),
join_path(_default_tmp, 'spack-stage') ]
tmp_dirs.append('/nfs/tmp2/%u/spack-stage') # TODO: remove
# Whether spack should allow installation of unsafe versions of
# software. "Unsafe" versions are ones it doesn't have a checksum