diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-08-15 09:27:02 +0100 |
---|---|---|
committer | James Ennis <james.ennis@codethink.co.uk> | 2019-08-27 12:12:13 +0100 |
commit | ef2015096ac039f541be5401a39cf25477afefca (patch) | |
tree | c13530df2af6251023c0b7e828819f2102a7ee90 /src/buildstream/_pipeline.py | |
parent | a8d68c9d313252454a9f92e00b8758a0d2d674ef (diff) | |
download | buildstream-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.py | 15 |
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. |