diff options
| author | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-10-27 19:10:42 +0100 |
|---|---|---|
| committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-11-01 17:52:33 +0000 |
| commit | c05dff5457833afeb9887eee3177daeebc3528bc (patch) | |
| tree | a4b250ee023bf311517071a12ac24477139fc13b | |
| parent | 6c0fa8445b849680300d407efe8bca691d4e680e (diff) | |
| download | buildstream-c05dff5457833afeb9887eee3177daeebc3528bc.tar.gz | |
_pipeline.py: Adjust Planner.plan to multiple targets
| -rw-r--r-- | buildstream/_pipeline.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py index 69121a971..6f57943d7 100644 --- a/buildstream/_pipeline.py +++ b/buildstream/_pipeline.py @@ -87,13 +87,13 @@ class Planner(): self.depth_map[element] = depth self.visiting_elements.remove(element) - def plan(self, root): - self.plan_element(root, 0) + def plan(self, roots): + for root in roots: + self.plan_element(root, 0) depth_sorted = sorted(self.depth_map.items(), key=itemgetter(1), reverse=True) return [item[0] for item in depth_sorted if not item[0]._cached()] - # Pipeline() # # Args: |
