From: Zac Medico Date: Tue, 8 Jul 2008 00:39:48 +0000 (-0000) Subject: Add a missing check in Scheduler._main_loop() to ensure that max_jobs X-Git-Tag: v2.2_rc2~163 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c123b39251d0b589fd1e4449f8a4815bf4dac66;p=portage.git Add a missing check in Scheduler._main_loop() to ensure that max_jobs isn't exceeded. svn path=/main/trunk/; revision=10978 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 3c94d61f2..9a9965b61 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -7986,9 +7986,14 @@ class Scheduler(object): pkg_queue = self._pkg_queue failed_pkgs = self._failed_pkgs task_queues = self._task_queues + max_jobs = self._max_jobs while pkg_queue and not failed_pkgs: + if self._jobs >= max_jobs: + self._schedule_main() + continue + pkg = self._choose_pkg() if not pkg.installed: