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

Author: zmedico
Date: 2008-07-29 20:52:05 +0000 (Tue, 29 Jul 2008)
New Revision: 11272

Modified:
   main/trunk/pym/_emerge/__init__.py
Log:
Fix _choose_pkg() to always return something if nothing is running or merging.


Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py	2008-07-29 20:24:43 UTC (rev 11271)
+++ main/trunk/pym/_emerge/__init__.py	2008-07-29 20:52:05 UTC (rev 11272)
@@ -9568,6 +9568,9 @@
 				return None
 			return self._pkg_queue.pop(0)
 
+		if not (self._jobs or self._task_queues.merge):
+			return self._pkg_queue.pop(0)
+
 		self._prune_digraph()
 
 		chosen_pkg = None




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

only message in thread, other threads:[~2008-07-29 20:52 UTC | newest]

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