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 11:33:34 +0000 |
commit | f3fbdac0afa562e60a01caf0c57ad2d148f22e43 (patch) | |
tree | ce0d98b100a89b09b94f0c84136cc030d1c3156c /buildstream | |
parent | 4cab18e3e90d990eb1f9f0ff2795c9dc12c7dbaf (diff) | |
download | buildstream-f3fbdac0afa562e60a01caf0c57ad2d148f22e43.tar.gz |
Pipeline: Skip except_elements logic if no elements to except
Diffstat (limited to 'buildstream')
-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 cc462c21a..4e5f4d0e9 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 = [] |