summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Gartung <gartung@fnal.gov>2020-02-20 15:07:32 -0600
committerGitHub <noreply@github.com>2020-02-20 13:07:32 -0800
commitdd0e18d7b82ea592e972fa15880acd64cefaf262 (patch)
tree2722ce606af92b7df600999b993e6807318d814d /lib
parentd1929b2ea7a3dd694ede128520cd07bd3183ad47 (diff)
downloadspack-dd0e18d7b82ea592e972fa15880acd64cefaf262.tar.gz
spack-dd0e18d7b82ea592e972fa15880acd64cefaf262.tar.bz2
spack-dd0e18d7b82ea592e972fa15880acd64cefaf262.tar.xz
spack-dd0e18d7b82ea592e972fa15880acd64cefaf262.zip
Use get_spec in relocated _try_install_from_binary_cache (#15131)
* Use get_spec in relocated _try_install_from_binary_cache
Diffstat (limited to 'lib')
-rwxr-xr-xlib/spack/spack/installer.py2
1 files changed, 1 insertions, 1 deletions
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: