summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2018-08-20 18:14:51 +0100
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-08-22 05:54:45 +0000
commit6f6a04a9c7daea48e4d4782b09bf197cbc41c1a6 (patch)
treec5781ae92555f2e2cbb50134a202a4d8087e89c1
parentfc3cff95f480e91644cbefa96d95ff0978fe0cfa (diff)
downloadbuildstream-6f6a04a9c7daea48e4d4782b09bf197cbc41c1a6.tar.gz
Pipeline: Skip except_elements logic if no elements to except
-rw-r--r--buildstream/_pipeline.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py
index 2d3194f6b..3b9fb0de9 100644
--- a/buildstream/_pipeline.py
+++ b/buildstream/_pipeline.py
@@ -235,6 +235,9 @@ class Pipeline():
# exceptions removed
#
def except_elements(self, targets, elements, except_targets):
+ if not except_targets:
+ return elements
+
targeted = list(self.dependencies(targets, Scope.ALL))
visited = []