Update lib/spack/spack/solver/asp.py
Co-authored-by: Greg Becker <becker33@llnl.gov>
This commit is contained in:
parent
17761f3e57
commit
9cd7fd1c98
@ -1999,10 +1999,10 @@ def define_ad_hoc_versions_from_specs(
|
||||
# best possible, so they're guaranteed to be used preferentially.
|
||||
version = s.versions.concrete
|
||||
|
||||
if version is None or any(
|
||||
(v == version and not isinstance(version, vn.GitVersion))
|
||||
if version is None or (not isinstance(version, vn.GitVersion) and any(
|
||||
v == version
|
||||
for v in self.possible_versions[s.name]
|
||||
):
|
||||
)):
|
||||
continue
|
||||
|
||||
if require_checksum and not _is_checksummed_git_version(version):
|
||||
|
Loading…
Reference in New Issue
Block a user