From bb86a7b52641ad0b0b8e4150344865fec89eb4b3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 6 Oct 2012 11:05:37 -0700 Subject: MetadataRegen: inherit AsyncScheduler --- pym/_emerge/actions.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pym/_emerge/actions.py') 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: -- cgit v1.2.3-1-g7c22