diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-03-13 12:31:29 +0000 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-03-13 17:04:04 +0000 |
commit | e0771937283156d2720f62102772072b5e72abec (patch) | |
tree | c897c960dff95bc32b3bbdd71b3e9b0c2c58b2e8 | |
parent | da9994a479d8d4a7df4167655af29879cf811f18 (diff) | |
download | buildstream-e0771937283156d2720f62102772072b5e72abec.tar.gz |
_artifactcache.py: Add prune() method
-rw-r--r-- | buildstream/_artifactcache.py | 7 |
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. |