Fix problem
This commit is contained in:
parent
1d441c1a7a
commit
820cf473cc
@ -3106,8 +3106,9 @@ def setup(
|
|||||||
|
|
||||||
# abstract specs with commit variants are assigend version most likely to have commit sha
|
# abstract specs with commit variants are assigend version most likely to have commit sha
|
||||||
for spec in specs:
|
for spec in specs:
|
||||||
|
commit = spec.variants.get("commit")
|
||||||
version = spec.versions.concrete_range_as_version
|
version = spec.versions.concrete_range_as_version
|
||||||
if not version:
|
if not version and commit:
|
||||||
version = max(spack.repo.PATH.get_pkg_class(spec.fullname).versions.keys())
|
version = max(spack.repo.PATH.get_pkg_class(spec.fullname).versions.keys())
|
||||||
spec.versions = spack.version.VersionList([version])
|
spec.versions = spack.version.VersionList([version])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user