diff options
author | Jürg Billeter <j@bitron.ch> | 2019-06-20 13:03:31 +0200 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-25 09:08:17 +0000 |
commit | cb0331a256af8e90e80f6937995fd9acad8725e3 (patch) | |
tree | 9cc281e28fec1af1df1169a881d536b8d168fd69 /src/buildstream/_pipeline.py | |
parent | 722d456799221ab57742b6e199a79d8476c0af98 (diff) | |
download | buildstream-cb0331a256af8e90e80f6937995fd9acad8725e3.tar.gz |
Always fetch subprojects as needed
Treat junction element sources the same as sources of any other element
and always fetch subprojects as needed. Do not ask the user to manually
fetch subprojects.
Diffstat (limited to 'src/buildstream/_pipeline.py')
-rw-r--r-- | src/buildstream/_pipeline.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py index e6ae94cfd..0758cf5ff 100644 --- a/src/buildstream/_pipeline.py +++ b/src/buildstream/_pipeline.py @@ -92,25 +92,19 @@ class Pipeline(): # # Args: # target_groups (list of lists): Groups of toplevel targets to load - # fetch_subprojects (bool): Whether we should fetch subprojects as a part of the - # loading process, if they are not yet locally cached # rewritable (bool): Whether the loaded files should be rewritable # this is a bit more expensive due to deep copies # # Returns: # (tuple of lists): A tuple of grouped Element objects corresponding to target_groups # - def load(self, target_groups, *, - fetch_subprojects=True, - rewritable=False): + def load(self, target_groups, *, rewritable=False): # First concatenate all the lists for the loader's sake targets = list(itertools.chain(*target_groups)) with PROFILER.profile(Topics.LOAD_PIPELINE, "_".join(t.replace(os.sep, "-") for t in targets)): - elements = self._project.load_elements(targets, - rewritable=rewritable, - fetch_subprojects=fetch_subprojects) + elements = self._project.load_elements(targets, rewritable=rewritable) # Now create element groups to match the input target groups elt_iter = iter(elements) |