summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2018-07-10 09:46:51 +0100
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2018-07-19 15:03:12 +0100
commit709b9bca58ac5ac82321b95caa6a4582c1698c36 (patch)
tree76f20946a58ddbf26bbef102283336fca59d446b
parent1016dcb43db19f326dd44c788433419cc86c3031 (diff)
downloadbuildstream-franred/fix-except-argument-in-source-bundle.tar.gz
source-bundle: Enable --except optionfranred/fix-except-argument-in-source-bundle
Before this option was listed in help but was ignored when creating the source-bundle. Issue #468
-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)