Update lib/spack/spack/solver/asp.py

Co-authored-by: Greg Becker <becker33@llnl.gov>
This commit is contained in:
psakievich 2024-04-26 06:32:27 -06:00 committed by GitHub
parent 17761f3e57
commit 9cd7fd1c98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):