projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1912160
)
CompositeTask: fix assertion in _wait
author
Zac Medico
<zmedico@gentoo.org>
Thu, 17 Mar 2011 01:42:59 +0000
(18:42 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 17 Mar 2011 01:42:59 +0000
(18:42 -0700)
pym/_emerge/CompositeTask.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/CompositeTask.py
b/pym/_emerge/CompositeTask.py
index 4667b781343159b207ff62fb59305ee42dd6040d..b5e8ce5bbf2db174db92e7b96814f1cb6da84d3a 100644
(file)
--- a/
pym/_emerge/CompositeTask.py
+++ b/
pym/_emerge/CompositeTask.py
@@
-49,6
+49,11
@@
class CompositeTask(AsynchronousTask):
# don't wait for the same task more than once
break
if task is prev:
+ if self.returncode is not None:
+ # This is expected if we're being
+ # called from the task's exit listener
+ # after it's been cancelled.
+ break
# Before the task.wait() method returned, an exit
# listener should have set self._current_task to either
# a different task or None. Something is wrong.