[bitbake-devel] [PATCH 4/7] knotty.py: update footer on dynamic log level change

Mark Hatle mark.hatle at windriver.com
Wed May 29 03:59:12 UTC 2013


From: Jason Wessel <jason.wessel at windriver.com>

This patch adds a call to update the task list after changing log
modes dynamically such that you can immediately see the remaining
tasks.

Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
---
 lib/bb/ui/knotty.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 4f59e96..5020815 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -181,6 +181,10 @@ class TerminalFilter(object):
             sys.stdout.write(self.curses.tparm(self.ed))
         self.footer_present = False
 
+    def updateFooterForce(self):
+        self.footer_present = False
+        self.updateFooter()
+
     def updateFooter(self):
         if not self.cuu:
             return
@@ -370,6 +374,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
             if stdin_mgr.poll():
                 keyinput = sys.stdin.read(1)
                 rtloglevel.setLevel(keyinput, True)
+                termfilter.updateFooterForce()
+
             # Always try printing any accumulated log files first
             rtloglevel.displayLogs()
             if event is None:
-- 
1.8.1.2.545.g2f19ada




More information about the bitbake-devel mailing list