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.
|
# best possible, so they're guaranteed to be used preferentially.
|
||||||
version = s.versions.concrete
|
version = s.versions.concrete
|
||||||
|
|
||||||
if version is None or any(
|
if version is None or (not isinstance(version, vn.GitVersion) and any(
|
||||||
(v == version and not isinstance(version, vn.GitVersion))
|
v == version
|
||||||
for v in self.possible_versions[s.name]
|
for v in self.possible_versions[s.name]
|
||||||
):
|
)):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if require_checksum and not _is_checksummed_git_version(version):
|
if require_checksum and not _is_checksummed_git_version(version):
|
||||||
|
Loading…
Reference in New Issue
Block a user