summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-10-06 11:05:37 -0700
committerZac Medico <zmedico@gentoo.org>2012-10-06 11:10:56 -0700
commitbb86a7b52641ad0b0b8e4150344865fec89eb4b3 (patch)
tree57b3ed2313c631ff2b54e69266f142001b353d16 /pym/_emerge/actions.py
parentddabf811a04a2e12f1f98e623a17f928deb2b3ba (diff)
downloadportage-bb86a7b52641ad0b0b8e4150344865fec89eb4b3.tar.gz
portage-bb86a7b52641ad0b0b8e4150344865fec89eb4b3.tar.bz2
portage-bb86a7b52641ad0b0b8e4150344865fec89eb4b3.zip
MetadataRegen: inherit AsyncScheduler
Diffstat (limited to 'pym/_emerge/actions.py')
-rw-r--r--pym/_emerge/actions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index f7ec07ab4..c384dd479 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -1866,7 +1866,8 @@ def action_regen(settings, portdb, max_jobs, max_load):
#regenerate cache entries
sys.stdout.flush()
- regen = MetadataRegen(portdb, max_jobs=max_jobs, max_load=max_load)
+ regen = MetadataRegen(portdb, max_jobs=max_jobs,
+ max_load=max_load, main=True)
received_signal = []
def emergeexitsig(signum, frame):
@@ -1881,7 +1882,8 @@ def action_regen(settings, portdb, max_jobs, max_load):
earlier_sigterm_handler = signal.signal(signal.SIGTERM, emergeexitsig)
try:
- regen.run()
+ regen.start()
+ regen.wait()
finally:
# Restore previous handlers
if earlier_sigint_handler is not None: