summaryrefslogtreecommitdiff
path: root/src/backend/clean.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-06 19:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-06 19:32:48 +0100
commit2d86cd9ddc5d9442e4a8e8fb50d72480a8293a4a (patch)
tree59cecf3bc71168b7a32b449aac436b0474147525 /src/backend/clean.py
parent1ec0c210ca2cbdb729a416e37a50d4b9a6a0dfa0 (diff)
minor fixes, make the gui client work with the new backend
Diffstat (limited to 'src/backend/clean.py')
-rw-r--r--src/backend/clean.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/backend/clean.py b/src/backend/clean.py
deleted file mode 100644
index 2460d9e..0000000
--- a/src/backend/clean.py
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/python3
-
-import os
-
-portageCacheDir = '/var/cache/packages'
-
-def cache():
- 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))
- else:
- shutil.rmtree(os.path.join(portageCacheDir, files))