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:
Patrick Gartung 2020-02-20 15:07:32 -06:00 committed by GitHub
parent d1929b2ea7
commit dd0e18d7b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -337,7 +337,7 @@ def _try_install_from_binary_cache(pkg, explicit):
"""
pkg_id = package_id(pkg)
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._mark_concrete()
if binary_spec not in specs: