[bitbake-devel] [PATCH 05/12] lib/bb/ui/uihelper: indicate to caller of eventHandler() if events handled
Paul Eggleton
paul.eggleton at linux.intel.com
Wed Jul 19 09:56:04 UTC 2017
It is useful for the caller to know whether the uihelper has handled the
event passed so that it can skip other event handling code if so.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
lib/bb/ui/uihelper.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/bb/ui/uihelper.py b/lib/bb/ui/uihelper.py
index 113fced..963c1ea 100644
--- a/lib/bb/ui/uihelper.py
+++ b/lib/bb/ui/uihelper.py
@@ -61,6 +61,9 @@ class BBUIHelper:
self.running_tasks[event.pid]['progress'] = event.progress
self.running_tasks[event.pid]['rate'] = event.rate
self.needUpdate = True
+ else:
+ return False
+ return True
def getTasks(self):
self.needUpdate = False
--
2.9.4
More information about the bitbake-devel
mailing list