summaryrefslogtreecommitdiff
path: root/src/buildstream/_artifact.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_artifact.py')
-rw-r--r--src/buildstream/_artifact.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buildstream/_artifact.py b/src/buildstream/_artifact.py
index feba3898b..ae1b395b3 100644
--- a/src/buildstream/_artifact.py
+++ b/src/buildstream/_artifact.py
@@ -459,6 +459,14 @@ class Artifact:
def reset_cached(self):
self._cached = None
+ # set_cached()
+ #
+ # Mark the artifact as cached without querying the filesystem.
+ # This is used as optimization when we know the artifact is available.
+ #
+ def set_cached(self):
+ self._cached = True
+
# _get_proto()
#
# Returns: