diff options
-rw-r--r-- | src/buildstream/element.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 00b2088e7..2a87798bf 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -752,20 +752,20 @@ class Element(Plugin): workspace = self._get_workspace() context = self._get_context() - if self.__can_build_incrementally() and workspace.last_digest: + if self.__can_build_incrementally() and workspace.last_artifact_ref: # Try to perform an incremental build if the last successful # build is still in the artifact cache # - if self.__artifacts.contains(self, workspace.last_digest): - last_digest = Artifact(self, context, strong_key=workspace.last_digest) + if self.__artifacts.contains(self, workspace.last_artifact_ref): + last_artifact_ref = Artifact(self, context, strong_key=workspace.last_artifact_ref) # Get a dict of dependency strong keys - old_dep_keys = last_digest.get_metadata_dependencies() + old_dep_keys = last_artifact_ref.get_metadata_dependencies() else: - # Last successful build is no longer in the artifact cache, + # Last build is no longer in the artifact cache, # so let's reset it and perform a full build now. workspace.prepared = False - workspace.last_digest = None + workspace.last_artifact_ref = None self.info("Resetting workspace state, last successful build is no longer in the cache") |