This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch jennis/introduce_artifact_delete in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 1878169f940deac8b8fcacdaeee0284764c255d6 Author: James Ennis <[email protected]> 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.
