summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-07-19 11:56:05 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 08:41:12 +0100
commite1285712fa634e2d88f263fa9aa624bdcd22b3fa (patch)
tree5210059e3c14148cdfea7061060f58fcbaa5e2ff
parent87182f2ce7e3a168d91a8e1f5b662c2a84e8a634 (diff)
downloadpoky-e1285712fa634e2d88f263fa9aa624bdcd22b3fa.tar.gz
bitbake: knotty: make it possible to use termfilter without either console
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). (Bitbake rev: 7544de437fc66b81502ecdb5db859182c45827cb) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/knotty.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index c3019822c4..f3900bdd05 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -207,8 +207,10 @@ class TerminalFilter(object):
207 self.interactive = False 207 self.interactive = False
208 bb.note("Unable to use interactive mode for this terminal, using fallback") 208 bb.note("Unable to use interactive mode for this terminal, using fallback")
209 return 209 return
210 console.addFilter(InteractConsoleLogFilter(self, format)) 210 if console:
211 errconsole.addFilter(InteractConsoleLogFilter(self, format)) 211 console.addFilter(InteractConsoleLogFilter(self, format))
212 if errconsole:
213 errconsole.addFilter(InteractConsoleLogFilter(self, format))
212 214
213 self.main_progress = None 215 self.main_progress = None
214 216