public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r11140 - main/trunk/pym/_emerge
@ 2008-07-19 12:30 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-07-19 12:30 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-07-19 12:30:53 +0000 (Sat, 19 Jul 2008)
New Revision: 11140

Modified:
   main/trunk/pym/_emerge/__init__.py
Log:
Use the memoized _choose_pkg() result to return earlier from
_schedule_tasks() when possible.


Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py	2008-07-19 12:25:39 UTC (rev 11139)
+++ main/trunk/pym/_emerge/__init__.py	2008-07-19 12:30:53 UTC (rev 11140)
@@ -9460,7 +9460,8 @@
 
 		state_change = 0
 
-		while self._can_add_job():
+		while not self._choose_pkg_return_early and \
+			self._can_add_job():
 
 			if not self._pkg_queue or self._failed_pkgs:
 				return (False, state_change)

-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-19 12:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-19 12:30 [gentoo-commits] portage r11140 - 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