diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-09 15:58:15 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-04-09 10:25:36 +0000 |
commit | 66cf08faf8aa10ecaf183604754bb314381d71a7 (patch) | |
tree | 9adfc1872751d05b36ed3f2b18e11267547fd984 /buildstream/_pipeline.py | |
parent | 68cee1c77021402cca100812e8f1965482e8969c (diff) | |
download | buildstream-66cf08faf8aa10ecaf183604754bb314381d71a7.tar.gz |
element.py: Cache source consistency logic and refactor workspace logic into Element
Workspaces are now element wide, so consistency edge cases must
be handled at the element level instead of the source level.
Diffstat (limited to 'buildstream/_pipeline.py')
-rw-r--r-- | buildstream/_pipeline.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py index a8de2c2d6..98ea6fbe8 100644 --- a/buildstream/_pipeline.py +++ b/buildstream/_pipeline.py @@ -263,7 +263,7 @@ class Pipeline(): self._assert_consistent(plan) # Filter out elements with cached sources, we already have them. - cached = [elt for elt in plan if elt._consistency() == Consistency.CACHED] + cached = [elt for elt in plan if elt._get_consistency() == Consistency.CACHED] plan = [elt for elt in plan if elt not in cached] self.session_elements = len(plan) @@ -718,7 +718,7 @@ class Pipeline(): inconsistent = [] with self.context.timed_activity("Checking sources"): for element in toplevel: - if element._consistency() == Consistency.INCONSISTENT: + if element._get_consistency() == Consistency.INCONSISTENT: inconsistent.append(element) if inconsistent: |