summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-03-13 12:31:29 +0000
committerJürg Billeter <j@bitron.ch>2019-03-13 17:04:04 +0000
commite0771937283156d2720f62102772072b5e72abec (patch)
treec897c960dff95bc32b3bbdd71b3e9b0c2c58b2e8
parentda9994a479d8d4a7df4167655af29879cf811f18 (diff)
downloadbuildstream-e0771937283156d2720f62102772072b5e72abec.tar.gz
_artifactcache.py: Add prune() method
-rw-r--r--buildstream/_artifactcache.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/buildstream/_artifactcache.py b/buildstream/_artifactcache.py
index 81b0e70a6..7da2d959c 100644
--- a/buildstream/_artifactcache.py
+++ b/buildstream/_artifactcache.py
@@ -424,6 +424,13 @@ class ArtifactCache():
def remove(self, ref, *, defer_prune=False):
return self.cas.remove(ref, defer_prune=defer_prune)
+ # prune():
+ #
+ # Prune the artifact cache of unreachable refs
+ #
+ def prune(self):
+ return self.cas.prune()
+
# get_artifact_directory():
#
# Get virtual directory for cached artifact of the specified Element.