summaryrefslogtreecommitdiff
path: root/src/buildstream/_stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_stream.py')
-rw-r--r--src/buildstream/_stream.py11
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 #
#############################################################