summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-10-16 16:53:59 +0100
committerDarius Makovsky <traveltissues@protonmail.com>2019-10-16 16:53:59 +0100
commit96164f5574c46d17bfa82198a2fe5e3bcb47b7ca (patch)
treeec7e46a8c9a70c7dd632c76251eebfaca683b395
parent1bf2f83a6d19a7660c0de32f921dc9102064cd01 (diff)
downloadbuildstream-96164f5574c46d17bfa82198a2fe5e3bcb47b7ca.tar.gz
element.py: remove workspace handling in update source state
-rw-r--r--src/buildstream/element.py21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 966f0f7cb..ef610bcc1 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -2419,23 +2419,10 @@ class Element(Plugin):
return
self.__consistency = Consistency.CACHED
- workspace = self._get_workspace()
-
- # Special case for workspaces
- if workspace:
-
- # A workspace is considered inconsistent in the case
- # that its directory went missing
- #
- fullpath = workspace.get_absolute_path()
- if not os.path.exists(fullpath):
- self.__consistency = Consistency.INCONSISTENT
- else:
-
- # Determine overall consistency of the element
- for source in self.__sources:
- source._update_state()
- self.__consistency = min(self.__consistency, source._get_consistency())
+ # Determine overall consistency of the element
+ for source in self.__sources:
+ source._update_state()
+ self.__consistency = min(self.__consistency, source._get_consistency())
# __can_build_incrementally()
#