summaryrefslogtreecommitdiff
path: root/src/backend/purgeenv.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-12 22:27:04 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-12 22:27:04 +0000
commitdef1fa5301790963e7e7ae214a2df1c692f97005 (patch)
tree47be1c85884facf0bbed4d22a8a9e2fee904eb71 /src/backend/purgeenv.py
parente07a1e4959c34d70631b693f76af8163702c306a (diff)
bugfix : https://bugs.redcorelinux.org/show_bug.cgi?id=132 && add manual cache cleaning optionv5.2301.0
Diffstat (limited to 'src/backend/purgeenv.py')
-rw-r--r--src/backend/purgeenv.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/purgeenv.py b/src/backend/purgeenv.py
index d9b12c9..b2c96f7 100644
--- a/src/backend/purgeenv.py
+++ b/src/backend/purgeenv.py
@@ -48,6 +48,14 @@ def cache():
shutil.rmtree(os.path.join(
sisyphus.getfs.portageCacheDir, files))
+ if os.path.isdir(sisyphus.getfs.portageDistDir):
+ for files in os.listdir(sisyphus.getfs.portageDistDir):
+ if os.path.isfile(os.path.join(sisyphus.getfs.portageDistDir, files)):
+ os.remove(os.path.join(sisyphus.getfs.portageDistDir, files))
+ else:
+ shutil.rmtree(os.path.join(
+ sisyphus.getfs.portageDistDir, files))
+
def metadata():
if os.path.isdir(sisyphus.getfs.portageMetadataDir):