diff options
Diffstat (limited to 'src/backend/metadata.py')
-rw-r--r-- | src/backend/metadata.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/backend/metadata.py b/src/backend/metadata.py index 99384a0..f906c95 100644 --- a/src/backend/metadata.py +++ b/src/backend/metadata.py @@ -6,22 +6,10 @@ import shutil import subprocess import sisyphus.filesystem -def regenMetadata(): +def purge(): if os.path.isdir(sisyphus.filesystem.portageMetadataDir): for files in os.listdir(sisyphus.filesystem.portageMetadataDir): if os.path.isfile(os.path.join(sisyphus.filesystem.portageMetadataDir, files)): os.remove(os.path.join(sisyphus.filesystem.portageMetadataDir, files)) else: shutil.rmtree(os.path.join(sisyphus.filesystem.portageMetadataDir, files)) - - portageExecStage1 = subprocess.Popen(['emerge', '--quiet', '--regen'], stdout=subprocess.PIPE) - portageExecStage1.wait() - portageExecStage2 = subprocess.Popen(['emerge', '--quiet', '--metadata'], stdout=subprocess.PIPE) - portageExecStage2.wait() - -def regenSilent(): - regenMetadata() - -@animation.wait("regenerating package metadata") -def regenAnimated(): - regenMetadata() |