diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2018-10-29 13:21:48 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2018-12-11 17:55:24 +0000 |
commit | 6b9a93fda6a35293c9885ef5d091c6efc23a4bd4 (patch) | |
tree | 87004c6dd54742985981f96166a4f92b8fa69d8d | |
parent | bc111ff9c1061c2e9bd53b0176aef92e89b5ab0d (diff) | |
download | buildstream-6b9a93fda6a35293c9885ef5d091c6efc23a4bd4.tar.gz |
element: use BST_STAGE_INTEGRATES in prepare_sandbox and assemble
This ensures Element.integrate_dependency_artifacts is called after stage
when BST_STAGE_INTEGRATES hasn't been set to False.
-rw-r--r-- | buildstream/element.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index 13140a156..35c305fee 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -1395,6 +1395,8 @@ class Element(Plugin): if not directory: if shell and scope == Scope.BUILD: self.stage(sandbox) + if not self.BST_STAGE_INTEGRATES: + self.integrate_dependency_artifacts(sandbox, scope) else: # Stage deps in the sandbox root with self.timed_activity("Staging dependencies", silent_nested=True): @@ -1404,8 +1406,7 @@ class Element(Plugin): # once they are all staged and ready if integrate: with self.timed_activity("Integrating sandbox"): - for dep in self.dependencies(scope): - dep.integrate(sandbox) + self.integrate_dependency_artifacts(sandbox, scope) yield sandbox @@ -1624,6 +1625,8 @@ class Element(Plugin): self.__configure_sandbox(sandbox) # Step 2 - Stage self.stage(sandbox) + if not self.BST_STAGE_INTEGRATES: + self.integrate_dependency_artifacts(sandbox, Scope.BUILD) if self.__batch_prepare_assemble: cm = sandbox.batch(self.__batch_prepare_assemble_flags, |