diff options
Diffstat (limited to 'pym')
-rw-r--r-- | pym/_emerge/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
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: |