summaryrefslogtreecommitdiff
path: root/src/backend/purgeEnvironment.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-30 14:33:29 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-10-30 14:33:29 +0000
commit9bb89285b638c1b2fb86a8d3234a176b5688009a (patch)
tree0aa52d55dfe026aa3e76f8ec598b05800517be2e /src/backend/purgeEnvironment.py
parent129031c9155d03890ef66f00be1ab60f63327c35 (diff)
move purgeEnvironment -> purgeenv
Diffstat (limited to 'src/backend/purgeEnvironment.py')
-rw-r--r--src/backend/purgeEnvironment.py51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/backend/purgeEnvironment.py b/src/backend/purgeEnvironment.py
deleted file mode 100644
index b5424a6..0000000
--- a/src/backend/purgeEnvironment.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/python3
-
-import animation
-import os
-import shutil
-import sisyphus.getfs
-
-@animation.wait('purging branch configuration')
-def branch():
- if os.path.isdir(sisyphus.getfs.gentooRepoDir):
- for files in os.listdir(sisyphus.getfs.gentooRepoDir):
- if os.path.isfile(os.path.join(sisyphus.getfs.gentooRepoDir, files)):
- os.remove(os.path.join(sisyphus.getfs.gentooRepoDir, files))
- else:
- shutil.rmtree(os.path.join(sisyphus.getfs.gentooRepoDir, files))
- else:
- os.makedirs(sisyphus.getfs.gentooRepoDir)
-
- if os.path.isdir(sisyphus.getfs.redcoreRepoDir):
- for files in os.listdir(sisyphus.getfs.redcoreRepoDir):
- if os.path.isfile(os.path.join(sisyphus.getfs.redcoreRepoDir, files)):
- os.remove(os.path.join(sisyphus.getfs.redcoreRepoDir, files))
- else:
- shutil.rmtree(os.path.join(sisyphus.getfs.redcoreRepoDir, files))
- else:
- os.makedirs(sisyphus.getfs.redcoreRepoDir)
-
- if os.path.isdir(sisyphus.getfs.portageConfigDir):
- for files in os.listdir(sisyphus.getfs.portageConfigDir):
- if os.path.isfile(os.path.join(sisyphus.getfs.portageConfigDir, files)):
- os.remove(os.path.join(sisyphus.getfs.portageConfigDir, files))
- else:
- shutil.rmtree(os.path.join(sisyphus.getfs.portageConfigDir, files))
- else:
- os.makedirs(sisyphus.getfs.portageConfigDir)
-
-def cache():
- if os.path.isdir(sisyphus.getfs.portageCacheDir):
- for files in os.listdir(sisyphus.getfs.portageCacheDir):
- if os.path.isfile(os.path.join(sisyphus.getfs.portageCacheDir, files)):
- os.remove(os.path.join(sisyphus.getfs.portageCacheDir, files))
- else:
- shutil.rmtree(os.path.join(sisyphus.getfs.portageCacheDir, files))
-
-def metadata():
- if os.path.isdir(sisyphus.getfs.portageMetadataDir):
- for files in os.listdir(sisyphus.getfs.portageMetadataDir):
- if os.path.isfile(os.path.join(sisyphus.getfs.portageMetadataDir, files)):
- os.remove(os.path.join(sisyphus.getfs.portageMetadataDir, files))
- else:
- shutil.rmtree(os.path.join(sisyphus.getfs.portageMetadataDir, files))