summaryrefslogtreecommitdiff
path: root/src/backend/purgeenv.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-04 22:10:33 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-04 22:10:33 +0000
commit99455bbb94f298cd101c3e43227647ccf7aaaf1b (patch)
tree6e1d079bc2a051592d64e5fd1a73b3ea6c2d0123 /src/backend/purgeenv.py
parent1965c85d0acc683e1dddb58cec343b2ff62711e4 (diff)
add an aditional matchphrase to the dependency solver, add color support && pep8 the whole backendv4.2212.0
Diffstat (limited to 'src/backend/purgeenv.py')
-rw-r--r--src/backend/purgeenv.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/backend/purgeenv.py b/src/backend/purgeenv.py
index ff009e7..d9b12c9 100644
--- a/src/backend/purgeenv.py
+++ b/src/backend/purgeenv.py
@@ -13,7 +13,8 @@ def branch():
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))
+ shutil.rmtree(os.path.join(
+ sisyphus.getfs.gentooRepoDir, files))
else:
os.makedirs(sisyphus.getfs.gentooRepoDir)
@@ -22,7 +23,8 @@ def branch():
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))
+ shutil.rmtree(os.path.join(
+ sisyphus.getfs.redcoreRepoDir, files))
else:
os.makedirs(sisyphus.getfs.redcoreRepoDir)
@@ -31,7 +33,8 @@ def branch():
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))
+ shutil.rmtree(os.path.join(
+ sisyphus.getfs.portageConfigDir, files))
else:
os.makedirs(sisyphus.getfs.portageConfigDir)
@@ -42,13 +45,16 @@ def cache():
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))
+ 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))
+ os.remove(os.path.join(
+ sisyphus.getfs.portageMetadataDir, files))
else:
- shutil.rmtree(os.path.join(sisyphus.getfs.portageMetadataDir, files))
+ shutil.rmtree(os.path.join(
+ sisyphus.getfs.portageMetadataDir, files))