summaryrefslogtreecommitdiff
path: root/buildstream/source.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/source.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/source.py')
-rw-r--r--buildstream/source.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/buildstream/source.py b/buildstream/source.py
index b9cb23e83..9d5449fbc 100644
--- a/buildstream/source.py
+++ b/buildstream/source.py
@@ -321,16 +321,6 @@ class Source(Plugin):
with context.silence():
self.__consistency = self.get_consistency()
- if self._has_workspace() and \
- self.__consistency > Consistency.INCONSISTENT:
-
- # A workspace is considered inconsistent in the case
- # that it's directory went missing
- #
- fullpath = self.__workspace.get_absolute_path()
- if not os.path.exists(fullpath):
- self.__consistency = Consistency.INCONSISTENT
-
# Return cached consistency
#
def _get_consistency(self):