From d0880afceec608a1a25ba9a73bd624707bcc5d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Mon, 1 Apr 2019 12:21:59 +0200 Subject: element.py: Set SandboxRemote.output_files_required This enables conditional output file fetching with remote execution. --- buildstream/element.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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): -- cgit v1.2.1