diff options
Diffstat (limited to 'lib/spack/spack/spec.py')
-rw-r--r-- | lib/spack/spack/spec.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 926f35a704..1c5f96ee72 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -95,6 +95,8 @@ import spack.variant as vt import spack.version as vn import spack.version.git_ref_lookup +from .enums import InstallRecordStatus + __all__ = [ "CompilerSpec", "Spec", @@ -2071,7 +2073,7 @@ class Spec: # First env, then store, then binary cache matches = ( (active_env.all_matching_specs(self) if active_env else []) - or spack.store.STORE.db.query(self, installed=any) + or spack.store.STORE.db.query(self, installed=InstallRecordStatus.ANY) or spack.binary_distribution.BinaryCacheQuery(True)(self) ) |