summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-04-12 19:05:47 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2016-04-12 19:05:47 +0200
commit73fb2345fc9dbc42042e16c1897c56b097529399 (patch)
tree2d1486f5c59343a2932d5863020d5dd349af9ba6
parente73caad0d76fe8710ae054f4bcdbad1a649dbb92 (diff)
parent1af88be3712d1b6090a2dde5d7a68405f7372ca7 (diff)
downloadspack-73fb2345fc9dbc42042e16c1897c56b097529399.tar.gz
spack-73fb2345fc9dbc42042e16c1897c56b097529399.tar.bz2
spack-73fb2345fc9dbc42042e16c1897c56b097529399.tar.xz
spack-73fb2345fc9dbc42042e16c1897c56b097529399.zip
Merge pull request #766 from mplegendre/bugfix/tmpdir_with_username
Spack was no longer using $TMPDIR for its stage area at LLNL.
-rw-r--r--lib/spack/spack/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/spack/spack/__init__.py b/lib/spack/spack/__init__.py
index aee11f061f..9108e1d0e3 100644
--- a/lib/spack/spack/__init__.py
+++ b/lib/spack/spack/__init__.py
@@ -136,9 +136,7 @@ for path in _tmp_candidates:
# don't add a second username if it's already unique by user.
if not _tmp_user in path:
tmp_dirs.append(join_path(path, '%u', 'spack-stage'))
-
-for path in _tmp_candidates:
- if not path in tmp_dirs:
+ else:
tmp_dirs.append(join_path(path, 'spack-stage'))
# Whether spack should allow installation of unsafe versions of