diff options
author | Abderrahim Kitouni <akitouni@gnome.org> | 2020-03-22 20:28:54 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-04-08 12:32:58 +0000 |
commit | a4738ec6ecc336b179390235b05c51490dfdf764 (patch) | |
tree | c57555e9b9ce59826e3f5ce6d232e5ebe3d990a7 | |
parent | 9ba60e6c42058e6e5d46056a395fe50fcad267d2 (diff) | |
download | buildstream-a4738ec6ecc336b179390235b05c51490dfdf764.tar.gz |
_artifact.py: don't consider an artifact cached if public data is missing
Part of #1264
-rw-r--r-- | src/buildstream/_artifact.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildstream/_artifact.py b/src/buildstream/_artifact.py index a9cd56c2a..659facba4 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 |