From 344d58ae21bd0f5b260ef47547c4cef95ec9a23c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 25 Oct 2022 23:09:04 +0100 Subject: rename : portageRepo -> gentooRepo --- src/backend/purgeEnvironment.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/backend/purgeEnvironment.py') 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): -- cgit v1.2.3