Use get_spec in relocated _try_install_from_binary_cache (#15131)
* Use get_spec in relocated _try_install_from_binary_cache
This commit is contained in:
parent
d1929b2ea7
commit
dd0e18d7b8
@ -337,7 +337,7 @@ def _try_install_from_binary_cache(pkg, explicit):
|
|||||||
"""
|
"""
|
||||||
pkg_id = package_id(pkg)
|
pkg_id = package_id(pkg)
|
||||||
tty.debug('Searching for binary cache of {0}'.format(pkg_id))
|
tty.debug('Searching for binary cache of {0}'.format(pkg_id))
|
||||||
specs = binary_distribution.get_specs()
|
specs = binary_distribution.get_spec(pkg.spec, force=False)
|
||||||
binary_spec = spack.spec.Spec.from_dict(pkg.spec.to_dict())
|
binary_spec = spack.spec.Spec.from_dict(pkg.spec.to_dict())
|
||||||
binary_spec._mark_concrete()
|
binary_spec._mark_concrete()
|
||||||
if binary_spec not in specs:
|
if binary_spec not in specs:
|
||||||
|
Loading…
Reference in New Issue
Block a user