diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-25 23:09:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-25 23:09:04 +0100 |
commit | 344d58ae21bd0f5b260ef47547c4cef95ec9a23c (patch) | |
tree | 5e3950d6e4bcc85f0d01aedc1cc0707de4611771 /src/backend/purgeEnvironment.py | |
parent | c672a93d709ec0cb7138034369d1f06af5ee0318 (diff) |
rename : portageRepo -> gentooRepo
Diffstat (limited to 'src/backend/purgeEnvironment.py')
-rw-r--r-- | src/backend/purgeEnvironment.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/purgeEnvironment.py b/src/backend/purgeEnvironment.py index 0eba801..701d4a9 100644 --- a/src/backend/purgeEnvironment.py +++ b/src/backend/purgeEnvironment.py @@ -7,14 +7,14 @@ import sisyphus.getFilesystem @animation.wait('purging branch configuration') def branch(): - if os.path.isdir(sisyphus.getFilesystem.portageRepoDir): - for files in os.listdir(sisyphus.getFilesystem.portageRepoDir): - if os.path.isfile(os.path.join(sisyphus.getFilesystem.portageRepoDir, files)): - os.remove(os.path.join(sisyphus.getFilesystem.portageRepoDir, files)) + if os.path.isdir(sisyphus.getFilesystem.gentooRepoDir): + for files in os.listdir(sisyphus.getFilesystem.gentooRepoDir): + if os.path.isfile(os.path.join(sisyphus.getFilesystem.gentooRepoDir, files)): + os.remove(os.path.join(sisyphus.getFilesystem.gentooRepoDir, files)) else: - shutil.rmtree(os.path.join(sisyphus.getFilesystem.portageRepoDir, files)) + shutil.rmtree(os.path.join(sisyphus.getFilesystem.gentooRepoDir, files)) else: - os.makedirs(sisyphus.getFilesystem.portageRepoDir) + os.makedirs(sisyphus.getFilesystem.gentooRepoDir) if os.path.isdir(sisyphus.getFilesystem.redcoreRepoDir): for files in os.listdir(sisyphus.getFilesystem.redcoreRepoDir): |