diff options
author | Daniel Firth <dan.firth@codethink.co.uk> | 2013-12-20 15:47:25 +0000 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2013-12-20 16:02:35 +0000 |
commit | ce99ab4010dee8f4a60844c004b2bddbcdfe5dec (patch) | |
tree | d7c327422959b8d9346fab67ea5b5aa8475cd7e6 /morphlib/plugins/gc_plugin.py | |
parent | 973f61504ec71e0ec925b592f12825aa0c9ab9d9 (diff) | |
download | morph-ce99ab4010dee8f4a60844c004b2bddbcdfe5dec.tar.gz |
LocalArtifactCache now takes a an FS object
Diffstat (limited to 'morphlib/plugins/gc_plugin.py')
-rw-r--r-- | morphlib/plugins/gc_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/plugins/gc_plugin.py b/morphlib/plugins/gc_plugin.py index 1adabe78..abfa1a30 100644 --- a/morphlib/plugins/gc_plugin.py +++ b/morphlib/plugins/gc_plugin.py @@ -19,6 +19,7 @@ import os import shutil import time +import fs.osfs import cliapp import morphlib @@ -114,7 +115,7 @@ class GCPlugin(cliapp.Plugin): chatty=True) return lac = morphlib.localartifactcache.LocalArtifactCache( - os.path.join(cache_path, 'artifacts')) + fs.osfs.OSFS(os.path.join(cache_path, 'artifacts'))) max_age, min_age = self.calculate_delete_range() logging.debug('Must remove artifacts older than timestamp %d' % max_age) |