* [gentoo-commits] portage r10986 - main/trunk/pym/_emerge
@ 2008-07-08 16:59 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-07-08 16:59 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-07-08 16:59:40 +0000 (Tue, 08 Jul 2008)
New Revision: 10986
Modified:
main/trunk/pym/_emerge/__init__.py
Log:
Fix infinite loop in CompositeTask._wait().
Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py 2008-07-08 10:49:02 UTC (rev 10985)
+++ main/trunk/pym/_emerge/__init__.py 2008-07-08 16:59:40 UTC (rev 10986)
@@ -1579,11 +1579,14 @@
def _wait(self):
+ prev = None
while True:
task = self._current_task
- if task is None:
+ if task is None or task is prev:
+ # don't wait for the same task more than once
break
task.wait()
+ prev = task
return self.returncode
--
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 16:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08 16:59 [gentoo-commits] portage r10986 - 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