diff options
author | becker33 <becker33@llnl.gov> | 2017-11-11 20:54:17 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-11-11 20:54:17 -0800 |
commit | 1008975bc0490c6e9faddf31c625f0fe801c9cf5 (patch) | |
tree | 4a30dc11cfff0e6c264d87dd478484b2e5475b65 | |
parent | 6fd92e4257bd2c56daa8e8dab6062b366f04355f (diff) | |
download | spack-1008975bc0490c6e9faddf31c625f0fe801c9cf5.tar.gz spack-1008975bc0490c6e9faddf31c625f0fe801c9cf5.tar.bz2 spack-1008975bc0490c6e9faddf31c625f0fe801c9cf5.tar.xz spack-1008975bc0490c6e9faddf31c625f0fe801c9cf5.zip |
Don't include build-only dependencies in build cache hash (#6262)
-rw-r--r-- | lib/spack/spack/package.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 67745a837c..728a1a4f6f 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1272,12 +1272,14 @@ class PackageBase(with_metaclass(PackageMeta, object)): def try_install_from_binary_cache(self, explicit): tty.msg('Searching for binary cache of %s' % self.name) specs = binary_distribution.get_specs() - if self.spec not in specs: + binary_spec = spack.spec.Spec.from_dict(self.spec.to_dict()) + binary_spec._mark_concrete() + if binary_spec not in specs: return False tty.msg('Installing %s from binary cache' % self.name) - tarball = binary_distribution.download_tarball(self.spec) + tarball = binary_distribution.download_tarball(binary_spec) binary_distribution.extract_tarball( - self.spec, tarball, yes_to_all=False, force=False) + binary_spec, tarball, yes_to_all=False, force=False) spack.store.db.add(self.spec, spack.store.layout, explicit=explicit) return True |