CompositeTask: fix _wait for TASK_QUEUED
authorZac Medico <zmedico@gentoo.org>
Fri, 18 Mar 2011 21:05:07 +0000 (14:05 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 18 Mar 2011 21:05:07 +0000 (14:05 -0700)
commite8fc5d66e57a8a84214fec16610c6a44804e219a
tree809a4510b57e8de5e5a684c8b30c392fac2d2127
parent09c9eaf22ac7453ef8a6067711e27a7756dd3d92
CompositeTask: fix _wait for TASK_QUEUED

Though this case might never have been triggered, the logic was broken
for cases in which self.cancelled was false and a task was queued. In
this case we need to call back into the scheduler until the queued task
is started or we are cancelled, whichever comes first.
pym/_emerge/CompositeTask.py