From 31cda992011ad3773daf63b2a73c1176e3ac909c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 Jul 2008 22:13:52 +0000 Subject: [PATCH] Ensure that that Scheduler._main_loop() doesn't return before the merge queue is empty. svn path=/main/trunk/; revision=11042 --- pym/_emerge/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 2375546cf..b3f06aaba 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8878,11 +8878,13 @@ class Scheduler(PollScheduler): if self._is_restart_scheduled(): self._set_max_jobs(1) + merge_queue = self._task_queues.merge + while not self._failed_pkgs and \ self._schedule(): self._poll_loop() - while self._jobs: + while self._jobs or merge_queue: self._poll_loop() def _schedule_tasks(self): -- 2.26.2