summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_frontend/cli.py3
-rw-r--r--buildstream/_stream.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py
index 1639cb910..51744e806 100644
--- a/buildstream/_frontend/cli.py
+++ b/buildstream/_frontend/cli.py
@@ -815,4 +815,5 @@ def source_bundle(app, element, force, directory,
app.stream.source_bundle(element, directory,
track_first=track_,
force=force,
- compression=compression)
+ compression=compression,
+ except_targets=except_)
diff --git a/buildstream/_stream.py b/buildstream/_stream.py
index 646b7a27c..002d37788 100644
--- a/buildstream/_stream.py
+++ b/buildstream/_stream.py
@@ -616,7 +616,8 @@ class Stream():
def source_bundle(self, target, directory, *,
track_first=False,
force=False,
- compression="gz"):
+ compression="gz",
+ except_targets=()):
if track_first:
track_targets = (target,)
@@ -625,6 +626,7 @@ class Stream():
elements, track_elements = self._load((target,), track_targets,
selection=PipelineSelection.ALL,
+ except_targets=except_targets,
track_selection=PipelineSelection.ALL,
fetch_subprojects=True)