From e0771937283156d2720f62102772072b5e72abec Mon Sep 17 00:00:00 2001 From: James Ennis Date: Wed, 13 Mar 2019 12:31:29 +0000 Subject: _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 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. -- cgit v1.2.1