summaryrefslogtreecommitdiff
path: root/src/buildstream/_pipeline.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-08-15 09:27:02 +0100
committerJames Ennis <james.ennis@codethink.co.uk>2019-08-27 12:12:13 +0100
commitef2015096ac039f541be5401a39cf25477afefca (patch)
treec13530df2af6251023c0b7e828819f2102a7ee90 /src/buildstream/_pipeline.py
parenta8d68c9d313252454a9f92e00b8758a0d2d674ef (diff)
downloadbuildstream-ef2015096ac039f541be5401a39cf25477afefca.tar.gz
Load artifact refs the same way we load element names
Diffstat (limited to 'src/buildstream/_pipeline.py')
-rw-r--r--src/buildstream/_pipeline.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py
index b6896b3de..7cf4abbe3 100644
--- a/src/buildstream/_pipeline.py
+++ b/src/buildstream/_pipeline.py
@@ -115,6 +115,21 @@ class Pipeline():
return tuple(element_groups)
+ # load_artifacts()
+ #
+ # Loads ArtifactElements from target artifacts.
+ #
+ # Args:
+ # target (list [str]): Target artifacts to load
+ #
+ # Returns:
+ # (list [ArtifactElement]): A list of ArtifactElement objects
+ #
+ def load_artifacts(self, targets):
+ # XXX: This is not included as part of the "load-pipeline" profiler, we could move
+ # the profiler to Stream?
+ return self._project.load_artifacts(targets)
+
# resolve_elements()
#
# Resolve element state and cache keys.