From a3e2cdd207fc610f9310bce122045f05734ccae2 Mon Sep 17 00:00:00 2001 From: Tom Pollard Date: Thu, 10 Jan 2019 11:08:54 +0000 Subject: _stream.py: Add use_artifact_config opt arg for load_selection() use_artifact_config added as an optional default arg, allowing for loading of given elements artifact remote config. --- buildstream/_stream.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'buildstream/_stream.py') diff --git a/buildstream/_stream.py b/buildstream/_stream.py index e77a19891..afb0256b4 100644 --- a/buildstream/_stream.py +++ b/buildstream/_stream.py @@ -101,19 +101,22 @@ class Stream(): # targets (list of str): Targets to pull # selection (PipelineSelection): The selection mode for the specified targets # except_targets (list of str): Specified targets to except from fetching + # use_artifact_config (bool): If artifact remote config should be loaded # # Returns: # (list of Element): The selected elements def load_selection(self, targets, *, selection=PipelineSelection.NONE, - except_targets=()): + except_targets=(), + use_artifact_config=False): profile_start(Topics.LOAD_SELECTION, "_".join(t.replace(os.sep, '-') for t in targets)) elements, _ = self._load(targets, (), selection=selection, except_targets=except_targets, - fetch_subprojects=False) + fetch_subprojects=False + use_artifact_config=use_artifact_config) profile_end(Topics.LOAD_SELECTION, "_".join(t.replace(os.sep, '-') for t in targets)) -- cgit v1.2.1