You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:54:10 UTC
[buildstream] 01/10: _artifact.py: don't consider an artifact
cached if public data is missing
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap pushed a commit to branch juerg/public-data
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 08ac8eb3bda78f2682085bf106ea16c638d93313
Author: Abderrahim Kitouni <ak...@gnome.org>
AuthorDate: Sun Mar 22 20:28:54 2020 +0100
_artifact.py: don't consider an artifact cached if public data is missing
Part of #1264
---
src/buildstream/_artifact.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/buildstream/_artifact.py b/src/buildstream/_artifact.py
index a9cd56c..659facb 100644
--- a/src/buildstream/_artifact.py
+++ b/src/buildstream/_artifact.py
@@ -443,6 +443,11 @@ class Artifact:
self._cached = False
return False
+ # Check whether public data is available
+ if not self._cas.contains_file(artifact.public_data):
+ self._cached = False
+ return False
+
self._cached = True
return True