Skip to content
Snippets Groups Projects
Unverified Commit 30ce818f authored by Patrick Gartung's avatar Patrick Gartung Committed by GitHub
Browse files

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
parent fa563f0f
No related branches found
No related tags found
No related merge requests found
...@@ -1358,8 +1358,13 @@ def try_install_from_binary_cache(self, explicit): ...@@ -1358,8 +1358,13 @@ def try_install_from_binary_cache(self, explicit):
binary_spec._mark_concrete() binary_spec._mark_concrete()
if binary_spec not in specs: if binary_spec not in specs:
return False return False
tty.msg('Installing %s from binary cache' % self.name)
tarball = binary_distribution.download_tarball(binary_spec) 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_distribution.extract_tarball(
binary_spec, tarball, allow_root=False, binary_spec, tarball, allow_root=False,
unsigned=False, force=False) unsigned=False, force=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment