summaryrefslogtreecommitdiff
path: root/src/backend/metadata.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-06 21:20:06 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-06 21:20:06 +0000
commit170f9d7b708902c2f8b58d911383aef2ef35941a (patch)
tree38e62857b8383807a2ee0921acdd84874295ca02 /src/backend/metadata.py
parentdf346a9e0facec5bc7e69a106d4e0e3776c966a4 (diff)
backend :
* we now ship updated metadata in our ebuild tree * we fetch it via normal update/sync operation * local regen/update is no longer required * this will improve update/sync operations considerably
Diffstat (limited to 'src/backend/metadata.py')
-rw-r--r--src/backend/metadata.py14
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()