Fix Scheduler._schedule_tasks() so that it never schedules a task when a
authorZac Medico <zmedico@gentoo.org>
Sun, 13 Jul 2008 04:30:06 +0000 (04:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 13 Jul 2008 04:30:06 +0000 (04:30 -0000)
package has already failed.

svn path=/main/trunk/; revision=11032

pym/_emerge/__init__.py

index 14c1466659fb2062340fa7d96e1d073e0beb9b1e..4f5042567048c3b9932c7b2046105903be40718c 100644 (file)
@@ -8812,7 +8812,7 @@ class Scheduler(PollScheduler):
 
                while self._can_add_job():
 
-                       if not self._pkg_queue:
+                       if not self._pkg_queue or self._failed_pkgs:
                                return False
 
                        pkg = self._choose_pkg()