Scheduler: hang in _schedule_tasks, bug 404995 v2.2.0_alpha88
authorZac Medico <zmedico@gentoo.org>
Mon, 20 Feb 2012 11:01:12 +0000 (03:01 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 20 Feb 2012 11:04:23 +0000 (03:04 -0800)
This is triggered whenever emerge bails out while parallel-fetch is
running in the background.

pym/_emerge/Scheduler.py

index b76d9ee96924b411b48adb2a9f3062eac502d0c1..62b3589d74f7a6106ba0efdb31a1a4a50583439d 100644 (file)
@@ -1523,8 +1523,9 @@ class Scheduler(PollScheduler):
                        if self._failed_pkgs and not self._build_opts.fetchonly and \
                                not self._is_work_scheduled() and \
                                self._task_queues.fetch:
+                               # Since this happens asynchronously, it doesn't count in
+                               # state_change (counting it triggers an infinite loop).
                                self._task_queues.fetch.clear()
-                               state_change += 1
 
                        if not (state_change or \
                                (self._merge_wait_queue and not self._jobs and