diff options
author | Jürg Billeter <j@bitron.ch> | 2019-04-01 12:21:59 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-04-12 11:17:33 +0200 |
commit | d0880afceec608a1a25ba9a73bd624707bcc5d31 (patch) | |
tree | e2bc97646b4142a7cf55bc67550aea19573e1459 | |
parent | 4f04e714a66e7fc550248fe10d9acb11e376c315 (diff) | |
download | buildstream-d0880afceec608a1a25ba9a73bd624707bcc5d31.tar.gz |
element.py: Set SandboxRemote.output_files_required
This enables conditional output file fetching with remote execution.
-rw-r--r-- | buildstream/element.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index b63cc3a4f..b31af1770 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -2407,6 +2407,8 @@ class Element(Plugin): self.info("Using a remote sandbox for artifact {} with directory '{}'".format(self.name, directory)) + output_files_required = context.require_artifact_files or self._artifact_files_required() + sandbox = SandboxRemote(context, project, directory, plugin=self, @@ -2415,7 +2417,8 @@ class Element(Plugin): config=config, specs=self.__remote_execution_specs, bare_directory=bare_directory, - allow_real_directory=False) + allow_real_directory=False, + output_files_required=output_files_required) yield sandbox elif directory is not None and os.path.exists(directory): |