summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-29 16:51:33 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-29 16:51:33 +0000
commite6aa6838f9f05f0343f6317ac59920765579f584 (patch)
tree19a98281ea63810e0e80625ef85c86e5149eccc4
parentbe4003dde85dbceddf7aaf56a496aea8b32743f7 (diff)
downloadportage-e6aa6838f9f05f0343f6317ac59920765579f584.tar.gz
portage-e6aa6838f9f05f0343f6317ac59920765579f584.tar.bz2
portage-e6aa6838f9f05f0343f6317ac59920765579f584.zip
Fix Scheduler._choose_pkg() so that it doesn't choose packages prematurely
in some cases. svn path=/main/trunk/; revision=11265
-rw-r--r--pym/_emerge/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 5d1b7f174..91b5c0051 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -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()