diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-08-20 18:14:51 +0100 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-08-21 13:46:25 +0100 |
commit | a6386019c0df509b65af2c047f20abc1b8b48320 (patch) | |
tree | 22a140ce529f413bff0066f1393259f50dfbdc20 | |
parent | ce6d5f8c76d3a320105160920ee5c30663c70531 (diff) | |
download | buildstream-jonathan/faster-except-elements-1.2.tar.gz |
Pipeline: Skip except_elements logic if no elements to exceptjonathan/faster-except-elements-1.2
-rw-r--r-- | buildstream/_pipeline.py | 3 |
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 = [] |