summaryrefslogtreecommitdiff
path: root/src/backend/cache.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-06 22:31:11 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-06 22:31:11 +0000
commit67b54180c8e93b6fba312e4c75f416b832afbc6a (patch)
treeb8d9937b4822f6392f1a79f49a8f43afb996ac6d /src/backend/cache.py
parenta1067ff82a989fb6d7d8026bd16992ab9fb13898 (diff)
merge similar modules togetherv4.2103
Diffstat (limited to 'src/backend/cache.py')
-rw-r--r--src/backend/cache.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/backend/cache.py b/src/backend/cache.py
deleted file mode 100644
index ed291f0..0000000
--- a/src/backend/cache.py
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/python3
-
-import os
-import shutil
-import sisyphus.filesystem
-
-def purge():
- 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(sisyphus.filesystem.portageCacheDir, files))