Add setup phases to the tail of the merge queue instead of the front, since
authorZac Medico <zmedico@gentoo.org>
Mon, 16 Nov 2009 00:31:01 +0000 (00:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 16 Nov 2009 00:31:01 +0000 (00:31 -0000)
otherwise when merging binary packages we sometimes tend to get a large number
of setup phases flooding the queue and preventing queued installs from
running. (trunk r14816)

svn path=/main/branches/2.1.7/; revision=14834

pym/_emerge/Scheduler.py

index 3ca46fb4afcd01a9d451ff6c8ba759c02a0e7a26..e6ad72f96fdda55a78d4b519cf63ec4b5a9d2595 100644 (file)
@@ -436,7 +436,7 @@ class Scheduler(PollScheduler):
                Schedule a setup phase on the merge queue, in order to
                serialize unsandboxed access to the live filesystem.
                """
-               self._task_queues.merge.addFront(setup_phase)
+               self._task_queues.merge.add(setup_phase)
                self._schedule()
 
        def _schedule_unpack(self, unpack_phase):