From 9c123b39251d0b589fd1e4449f8a4815bf4dac66 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 8 Jul 2008 00:39:48 +0000 Subject: [PATCH] Add a missing check in Scheduler._main_loop() to ensure that max_jobs isn't exceeded. svn path=/main/trunk/; revision=10978 --- pym/_emerge/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) 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: -- 2.26.2