summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index f9065997b..51a143113 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -253,6 +253,7 @@ class Element(Plugin):
self.__buildable_callback = None # Callback to BuildQueue
self._depth = None # Depth of Element in its current dependency graph
+ self._resolved_initial_state = False # Whether the initial state of the Element has been resolved
# Ensure we have loaded this class's defaults
self.__init_defaults(project, plugin_conf, meta.kind, meta.is_junction)
@@ -1196,6 +1197,8 @@ class Element(Plugin):
# This must be called whenever the state of an element may have changed.
#
def _update_state(self):
+ if not self._resolved_initial_state:
+ self._resolved_initial_state = True
context = self._get_context()
# Compute and determine consistency of sources