summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-07-23 10:31:29 +0200
committerJürg Billeter <j@bitron.ch>2019-08-08 14:38:08 +0200
commit0ac027e9c4fece51ca3d5f4deada70cb3fcd06fd (patch)
tree3689093c0a4969fbb38f7fca3495be2483ce7e10
parent18b787e9536aa93d9c44d4f05f335e339b1a6f11 (diff)
downloadbuildstream-0ac027e9c4fece51ca3d5f4deada70cb3fcd06fd.tar.gz
_artifact.py: Update blob mtimes in cached()
This is in preparation for blob-based expiry as used by buildbox-casd.
-rw-r--r--src/buildstream/_artifact.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_artifact.py b/src/buildstream/_artifact.py
index 493ca5d26..5499b0dab 100644
--- a/src/buildstream/_artifact.py
+++ b/src/buildstream/_artifact.py
@@ -363,7 +363,7 @@ class Artifact():
# Check whether 'files' subdirectory is available, with or without file contents
if (require_directories and str(artifact.files) and
- not self._cas.contains_directory(artifact.files, with_files=require_files)):
+ not self._cas.contains_directory(artifact.files, with_files=require_files, update_mtime=True)):
self._cached = False
return False