diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-14 12:56:31 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-14 12:56:31 +0000 |
commit | 451815d2c46757c3ba67f37f079a8adf094a9a2e (patch) | |
tree | 74a15fe151e005c06a04a4ba89b3a45a9493542c /src | |
parent | def1fa5301790963e7e7ae214a2df1c692f97005 (diff) |
purge the download cache when switching branches
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/purgeenv.py | 2 | ||||
-rw-r--r-- | src/backend/setbranch.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/purgeenv.py b/src/backend/purgeenv.py index b2c96f7..53aaf27 100644 --- a/src/backend/purgeenv.py +++ b/src/backend/purgeenv.py @@ -39,6 +39,7 @@ def branch(): os.makedirs(sisyphus.getfs.portageConfigDir) +@animation.wait('purging cached files') def cache(): if os.path.isdir(sisyphus.getfs.portageCacheDir): for files in os.listdir(sisyphus.getfs.portageCacheDir): @@ -57,6 +58,7 @@ def cache(): sisyphus.getfs.portageDistDir, files)) +@animation.wait('purging metadata files') def metadata(): if os.path.isdir(sisyphus.getfs.portageMetadataDir): for files in os.listdir(sisyphus.getfs.portageMetadataDir): diff --git a/src/backend/setbranch.py b/src/backend/setbranch.py index 0b013a3..ac0f99e 100644 --- a/src/backend/setbranch.py +++ b/src/backend/setbranch.py @@ -92,6 +92,7 @@ def giveWarning(branch, remote): def start(branch, remote): if sisyphus.checkenv.root(): sisyphus.purgeenv.branch() + sisyphus.purgeenv.cache() sisyphus.purgeenv.metadata() injectGentooRepo(branch, remote) injectRedcoreRepo(branch, remote) |