aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-02-17 22:40:57 -0800
committerZac Medico <zmedico@gentoo.org>2020-02-17 22:44:43 -0800
commit036c644712c36b2d67e818e6f60aa753ebd6acaf (patch)
treecdb875654dbd452573d25cc16b693b0fc3b62f5d /lib
parentEbuildPhase: add _async_start coroutine (diff)
downloadportage-036c644712c36b2d67e818e6f60aa753ebd6acaf.tar.gz
portage-036c644712c36b2d67e818e6f60aa753ebd6acaf.tar.bz2
portage-036c644712c36b2d67e818e6f60aa753ebd6acaf.zip
AsynchronousTask: Call _start_hook after _start_async
The start listeners need to run after _start_async has completed in case they rely on any state that _start_async has created (same goes for _start). Fixes: d66e9ec0b105 ("AsynchronousTask: add coroutine async_start method") Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/_emerge/AsynchronousTask.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_emerge/AsynchronousTask.py b/lib/_emerge/AsynchronousTask.py
index 280ed16da..d1e23cdf1 100644
--- a/lib/_emerge/AsynchronousTask.py
+++ b/lib/_emerge/AsynchronousTask.py
@@ -25,8 +25,8 @@ class AsynchronousTask(SlotObject):
@coroutine
def async_start(self):
- self._start_hook()
yield self._async_start()
+ self._start_hook()
@coroutine
def _async_start(self):
@@ -38,8 +38,8 @@ class AsynchronousTask(SlotObject):
"""
Start an asynchronous task and then return as soon as possible.
"""
- self._start_hook()
self._start()
+ self._start_hook()
def _start(self):
self.returncode = os.EX_OK