From dd0e18d7b82ea592e972fa15880acd64cefaf262 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Thu, 20 Feb 2020 15:07:32 -0600 Subject: [PATCH] Use get_spec in relocated _try_install_from_binary_cache (#15131) * Use get_spec in relocated _try_install_from_binary_cache --- lib/spack/spack/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py index 6e772fbb66..9b340b951d 100755 --- a/lib/spack/spack/installer.py +++ b/lib/spack/spack/installer.py @@ -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: