You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:18:02 UTC
[buildstream] 02/08: _artifactcache.py: Add prune() method
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch jennis/introduce_artifact_delete
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 1878169f940deac8b8fcacdaeee0284764c255d6
Author: James Ennis <ja...@codethink.co.uk>
AuthorDate: Wed Mar 13 12:31:29 2019 +0000
_artifactcache.py: Add prune() method
---
buildstream/_artifactcache.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/buildstream/_artifactcache.py b/buildstream/_artifactcache.py
index 81b0e70..7da2d95 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.