summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-29 17:50:36 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-29 17:50:36 +0000
commitc58eaeef93c23cb13b4850b0b17f64eebca50082 (patch)
tree39312728f62ddea5af6880ad0f4b63789b5199bb
parent27532c515ba5d4d852b20ac6ddc3953d2d39dea6 (diff)
downloadportage-c58eaeef93c23cb13b4850b0b17f64eebca50082.tar.gz
portage-c58eaeef93c23cb13b4850b0b17f64eebca50082.tar.bz2
portage-c58eaeef93c23cb13b4850b0b17f64eebca50082.zip
Fix Scheduler._set_digraph() to correctly handle cases when max_jobs is True.
svn path=/main/trunk/; revision=11267
-rw-r--r--pym/_emerge/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 87c6262a4..6951590db 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -8936,7 +8936,8 @@ class Scheduler(PollScheduler):
return background
def _set_digraph(self, digraph):
- if self._max_jobs < 2:
+ if self._max_jobs is not True and \
+ self._max_jobs < 2:
# save some memory
self._digraph = None
return