Scheduler: terminate _merge_wait_queue
authorZac Medico <zmedico@gentoo.org>
Thu, 17 Mar 2011 00:36:36 +0000 (17:36 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 17 Mar 2011 00:36:36 +0000 (17:36 -0700)
pym/_emerge/Scheduler.py

index 6c2460455b7784ae445ce55b546535af011e6cef..b961e83c0e98d7e1321c483e0042c046f99a31e5 100644 (file)
@@ -300,6 +300,10 @@ class Scheduler(PollScheduler):
                # them and their start/exit handlers won't be called.
                for build in self._task_queues.jobs._task_queue:
                        self._running_tasks.remove(build.pkg)
+               if self._merge_wait_queue:
+                       for merge in self._merge_wait_queue:
+                               self._running_tasks.remove(merge.merge.pkg)
+                       del self._merge_wait_queue[:]
                for merge in self._task_queues.merge._task_queue:
                        # Setup phases may be scheduled in this queue, but
                        # we're only interested in the PackageMerge instances.