summaryrefslogtreecommitdiff
path: root/buildstream/buildelement.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-25 19:13:59 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-25 19:13:59 +0900
commit85810f0bbd974a553bdff431d9d091d0613cd293 (patch)
treec2623c259bebf9a5f503a3f1d8ac0c781b7754e8 /buildstream/buildelement.py
parent50361c9b67e03afc53b0d8f494bafb349323a09e (diff)
downloadbuildstream-85810f0bbd974a553bdff431d9d091d0613cd293.tar.gz
buildelement.py: Run Element.integrate() on all staged dependencies.
Ensure that caches are updated and system is runnable before running any shell commands.
Diffstat (limited to 'buildstream/buildelement.py')
-rw-r--r--buildstream/buildelement.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildstream/buildelement.py b/buildstream/buildelement.py
index 221a3f491..580f8dea3 100644
--- a/buildstream/buildelement.py
+++ b/buildstream/buildelement.py
@@ -62,6 +62,11 @@ class BuildElement(Element):
for dep in self.dependencies(Scope.BUILD):
dep.stage(sandbox)
+ # Run any integration commands provided by the dependencies
+ # once they are all staged and ready
+ for dep in self.dependencies(Scope.BUILD):
+ dep.integrate(sandbox)
+
# Stage sources in /buildstream/build
self.stage_sources(sandbox, '/buildstream/build')