Don't include build-only dependencies in build cache hash (#6262)

This commit is contained in:
becker33 2017-11-11 20:54:17 -08:00 committed by Todd Gamblin
parent 6fd92e4257
commit 1008975bc0

View File

@ -1272,12 +1272,14 @@ def _update_explicit_entry_in_db(self, rec, explicit):
def try_install_from_binary_cache(self, explicit): def try_install_from_binary_cache(self, explicit):
tty.msg('Searching for binary cache of %s' % self.name) tty.msg('Searching for binary cache of %s' % self.name)
specs = binary_distribution.get_specs() 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 return False
tty.msg('Installing %s from binary cache' % self.name) 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( 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) spack.store.db.add(self.spec, spack.store.layout, explicit=explicit)
return True return True