[oe-commits] [bitbake] 14/18: knotty: make it possible to use termfilter without consoles

git at git.openembedded.org git at git.openembedded.org
Wed Jul 19 09:53:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 40c12eceb49c605ba332776bce196851862b0517
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Thu Jun 29 13:50:36 2017 +0100

    knotty: make it possible to use termfilter without consoles
    
    This isn't useful for knotty itself, but for use from tinfoil
    in case we can't get access to either the console or errconsole, allow
    either to be unspecified (None).
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/ui/knotty.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index c301982..f3900bd 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -207,8 +207,10 @@ class TerminalFilter(object):
             self.interactive = False
             bb.note("Unable to use interactive mode for this terminal, using fallback")
             return
-        console.addFilter(InteractConsoleLogFilter(self, format))
-        errconsole.addFilter(InteractConsoleLogFilter(self, format))
+        if console:
+            console.addFilter(InteractConsoleLogFilter(self, format))
+        if errconsole:
+            errconsole.addFilter(InteractConsoleLogFilter(self, format))
 
         self.main_progress = None
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list