diff options
author | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-01-10 11:08:54 +0000 |
---|---|---|
committer | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-01-28 12:14:40 +0000 |
commit | a3e2cdd207fc610f9310bce122045f05734ccae2 (patch) | |
tree | e32217d620043a2cc3ca4fad5b23c954b0025f52 | |
parent | 564cb2450a8657762e16c1d26d1373987dc4a6c5 (diff) | |
download | buildstream-a3e2cdd207fc610f9310bce122045f05734ccae2.tar.gz |
_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.
-rw-r--r-- | buildstream/_stream.py | 7 |
1 files changed, 5 insertions, 2 deletions
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)) |