diff options
Diffstat (limited to 'src/backend/cache.py')
-rw-r--r-- | src/backend/cache.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/backend/cache.py b/src/backend/cache.py index aaa0a32..b040323 100644 --- a/src/backend/cache.py +++ b/src/backend/cache.py @@ -2,13 +2,12 @@ import os import shutil - -portageCacheDir = '/var/cache/packages' +import sisyphus.filesystem def clean(): - if os.path.isdir(portageCacheDir): - for files in os.listdir(portageCacheDir): - if os.path.isfile(os.path.join(portageCacheDir, files)): - os.remove(os.path.join(portageCacheDir, files)) + if os.path.isdir(sisyphus.filesystem.portageCacheDir): + for files in os.listdir(sisyphus.filesystem.portageCacheDir): + if os.path.isfile(os.path.join(sisyphus.filesystem.portageCacheDir, files)): + os.remove(os.path.join(sisyphus.filesystem.portageCacheDir, files)) else: - shutil.rmtree(os.path.join(portageCacheDir, files)) + shutil.rmtree(os.path.join(sisyphus.filesystem.portageCacheDir, files)) |