summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2018-07-10 09:46:51 +0100
committerValentin David <valentin.david@gmail.com>2018-08-13 20:23:50 +0000
commitb3fac25852c636d50e48a9317068d6afc55b2a54 (patch)
treee041eb42f9b05a1a31ca7f3ac02ab82ed2bf3ec4
parent2315fff0201c750fa45a402c040016cea244355d (diff)
downloadbuildstream-b3fac25852c636d50e48a9317068d6afc55b2a54.tar.gz
source-bundle: Enable --except option
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 79779aee5..20624e2ac 100644
--- a/buildstream/_frontend/cli.py
+++ b/buildstream/_frontend/cli.py
@@ -827,4 +827,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 017f1e445..798ab9a33 100644
--- a/buildstream/_stream.py
+++ b/buildstream/_stream.py
@@ -658,7 +658,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,)
@@ -667,6 +668,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)