From 7ae34087e3397c0294c51dab53082ebdc490f532 Mon Sep 17 00:00:00 2001 From: Carson Woods Date: Tue, 16 Jul 2019 14:44:06 -0600 Subject: [PATCH] Set remove old shared spack code --- lib/spack/spack/caches.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/spack/spack/caches.py b/lib/spack/spack/caches.py index e1ec2a67ec7..228a7c28ff6 100644 --- a/lib/spack/spack/caches.py +++ b/lib/spack/spack/caches.py @@ -40,11 +40,7 @@ def _fetch_cache(): This prevents Spack from repeatedly fetch the same files when building the same package different ways or multiple times. """ - if spack.config.get('config:shared'): - path = os.path.join(os.environ['SPACK_PATH'], - 'var/spack/cache') - else: - path = spack.config.get('config:source_cache') + path = spack.config.get('config:source_cache') if not path: path = os.path.join(spack.paths.var_path, "cache")