do not allow dev specs to be reused

This commit is contained in:
Gregory Becker
2022-03-03 09:25:37 -08:00
committed by psakiev
parent eb95a50e08
commit 453d36ca00

View File

@@ -1668,13 +1668,15 @@ def define_installed_packages(self, specs, possible):
# Specs from local store
with spack.store.db.read_transaction():
for spec in spack.store.db.query(installed=True):
self._facts_from_concrete_spec(spec, possible)
if not spec.satisfies('dev_path=*'):
self._facts_from_concrete_spec(spec, possible)
# Specs from configured buildcaches
try:
index = spack.binary_distribution.update_cache_and_get_specs()
for spec in index:
self._facts_from_concrete_spec(spec, possible)
if not spec.satisfies('dev_path=*'):
self._facts_from_concrete_spec(spec, possible)
except (spack.binary_distribution.FetchCacheError, IndexError):
# this is raised when no mirrors had indices.
# TODO: update mirror configuration so it can indicate that the source cache