Fix Scheduler._choose_pkg() so that it doesn't choose packages prematurely
authorZac Medico <zmedico@gentoo.org>
Tue, 29 Jul 2008 16:51:33 +0000 (16:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 29 Jul 2008 16:51:33 +0000 (16:51 -0000)
in some cases.

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

pym/_emerge/__init__.py

index 5d1b7f174c736e0a007121cea008d7ad91bcc8e4..91b5c005118b80bfdee7ef649678a1fb998a5ab3 100644 (file)
@@ -9567,7 +9567,7 @@ class Scheduler(PollScheduler):
                if self._choose_pkg_return_early:
                        return None
 
-               if self._max_jobs < 2 or self._jobs == 0:
+               if self._digraph is None:
                        return self._pkg_queue.pop(0)
 
                self._prune_digraph()