summaryrefslogtreecommitdiff
path: root/buildstream/_pipeline.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-09 15:58:15 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-04-09 10:25:36 +0000
commit66cf08faf8aa10ecaf183604754bb314381d71a7 (patch)
tree9adfc1872751d05b36ed3f2b18e11267547fd984 /buildstream/_pipeline.py
parent68cee1c77021402cca100812e8f1965482e8969c (diff)
downloadbuildstream-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.py4
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: