diff options
author | Darius Makovsky <traveltissues@protonmail.com> | 2019-12-02 15:42:38 +0000 |
---|---|---|
committer | Darius Makovsky <traveltissues@protonmail.com> | 2019-12-02 16:40:51 +0000 |
commit | ba3a11f54386769ebf4bc483a35159c80de5202d (patch) | |
tree | 38d2735036492b849ea95eaad0273e4e9c363318 | |
parent | 3599d294b43b76b21b404c304b58d72ee57654f1 (diff) | |
download | buildstream-traveltissues/testing.tar.gz |
WIP: check workspace artifactstraveltissues/testing
-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") |