diff options
author | Jürg Billeter <j@bitron.ch> | 2019-06-19 10:57:21 +0200 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-25 09:08:17 +0000 |
commit | 737aea1840253abddc3468743cedb4b706f734a5 (patch) | |
tree | 76ffe0de723ad59e00f5c864628f22a4f22916b7 /src/buildstream/_stream.py | |
parent | 4c50ba274e1fbd5b15ce316621e81ad8bdcabdbf (diff) | |
download | buildstream-737aea1840253abddc3468743cedb4b706f734a5.tar.gz |
Handle subproject fetching in the Stream class
Diffstat (limited to 'src/buildstream/_stream.py')
-rw-r--r-- | src/buildstream/_stream.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py index c9e847319..650202d21 100644 --- a/src/buildstream/_stream.py +++ b/src/buildstream/_stream.py @@ -953,6 +953,17 @@ class Stream(): return list(output_elements) + # fetch_subprojects() + # + # Fetch subprojects as part of the project and element loading process. + # + # Args: + # junctions (list of Element): The junctions to fetch + # + def fetch_subprojects(self, junctions): + for junction in junctions: + junction._fetch() + ############################################################# # Scheduler API forwarding # ############################################################# |