1 |
commit: 83cfc04df383b56592b89f1dc58428c0e8d09925 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 1 11:08:49 2013 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 1 11:08:49 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=83cfc04d |
7 |
|
8 |
AsynchronousLock: override _async_wait_cb |
9 |
|
10 |
--- |
11 |
pym/_emerge/AsynchronousLock.py | 6 +++--- |
12 |
1 files changed, 3 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/pym/_emerge/AsynchronousLock.py b/pym/_emerge/AsynchronousLock.py |
15 |
index 2de1acd..5205414 100644 |
16 |
--- a/pym/_emerge/AsynchronousLock.py |
17 |
+++ b/pym/_emerge/AsynchronousLock.py |
18 |
@@ -119,12 +119,12 @@ class _LockThread(AbstractPollTask): |
19 |
def _run_lock(self): |
20 |
self._lock_obj = lockfile(self.path, wantnewlockfile=True) |
21 |
# Thread-safe callback to EventLoop |
22 |
- self.scheduler.idle_add(self._run_lock_cb) |
23 |
+ self._async_wait() |
24 |
|
25 |
- def _run_lock_cb(self): |
26 |
+ def _async_wait_cb(self): |
27 |
self._unregister() |
28 |
self.returncode = os.EX_OK |
29 |
- self.wait() |
30 |
+ AbstractPollTask._async_wait_cb(self) |
31 |
return False |
32 |
|
33 |
def _cancel(self): |