You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:18:03 UTC
[buildstream] 03/08: _artifactelement.py: Add _get_cache_key()
override
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch jennis/introduce_artifact_delete
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit e8573a6ca3d02ba678a4d4acd2eee7851e6ac201
Author: James Ennis <ja...@codethink.co.uk>
AuthorDate: Tue Mar 5 16:01:01 2019 +0000
_artifactelement.py: Add _get_cache_key() override
---
buildstream/_artifactelement.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/buildstream/_artifactelement.py b/buildstream/_artifactelement.py
index a88e83a..a7915eb 100644
--- a/buildstream/_artifactelement.py
+++ b/buildstream/_artifactelement.py
@@ -59,6 +59,10 @@ class ArtifactElement(Element):
def _calculate_cache_key(self, dependencies=None):
return self._key
+ # Override Element._get_cache_key()
+ def _get_cache_key(self, strength=None):
+ return self._key
+
# verify_artifact_ref()
#