Set remove old shared spack code

This commit is contained in:
Carson Woods
2019-07-16 14:44:06 -06:00
parent 2064241c37
commit d5093c20c5

View File

@@ -40,11 +40,7 @@ def _fetch_cache():
This prevents Spack from repeatedly fetch the same files when This prevents Spack from repeatedly fetch the same files when
building the same package different ways or multiple times. building the same package different ways or multiple times.
""" """
if spack.config.get('config:shared'): path = spack.config.get('config:source_cache')
path = os.path.join(os.environ['SPACK_PATH'],
'var/spack/cache')
else:
path = spack.config.get('config:source_cache')
if not path: if not path:
path = os.path.join(spack.paths.var_path, "cache") path = os.path.join(spack.paths.var_path, "cache")