* [gentoo-commits] portage r10978 - main/trunk/pym/_emerge
@ 2008-07-08 0:39 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-07-08 0:39 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-07-08 00:39:48 +0000 (Tue, 08 Jul 2008)
New Revision: 10978
Modified:
main/trunk/pym/_emerge/__init__.py
Log:
Add a missing check in Scheduler._main_loop() to ensure that max_jobs
isn't exceeded.
Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py 2008-07-08 00:25:56 UTC (rev 10977)
+++ main/trunk/pym/_emerge/__init__.py 2008-07-08 00:39:48 UTC (rev 10978)
@@ -7986,9 +7986,14 @@
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:
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-08 0:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08 0:39 [gentoo-commits] portage r10978 - main/trunk/pym/_emerge Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox