[bitbake-devel] [PATCH] knotty: Move second event check into a proper block

Namhyung Kim namhyung at gmail.com
Wed Jul 30 02:01:45 UTC 2014


so that it doesn't check it twice for non-empty events

Signed-off-by: Namhyung Kim <namhyung at gmail.com>
---
 lib/bb/ui/knotty.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 77a7082..746dcf4 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -321,8 +321,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
                     break
                 termfilter.updateFooter()
                 event = eventHandler.waitEvent(0.25)
-            if event is None:
-                continue
+                if event is None:
+                    continue
             helper.eventHandler(event)
             if isinstance(event, bb.runqueue.runQueueExitWait):
                 if not main.shutdown:
-- 
2.0.0




More information about the bitbake-devel mailing list