Fix for #10063 : install from source if buildcache with different DAG exist (#11834)

* Fix for #10063 : install from source if buildcache with different DAG exist

* Flake8
This commit is contained in:
Patrick Gartung 2019-06-24 21:09:24 -05:00 committed by GitHub
parent fa563f0f55
commit 30ce818fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1358,8 +1358,13 @@ def try_install_from_binary_cache(self, explicit):
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(binary_spec)
# see #10063 : install from source if tarball doesn't exist
if tarball is None:
tty.msg('%s exist in binary cache but with different hash' %
self.name)
return False
tty.msg('Installing %s from binary cache' % self.name)
binary_distribution.extract_tarball(
binary_spec, tarball, allow_root=False,
unsigned=False, force=False)