Patchwork [bitbake-devel] knotty: use bb.error instead of print

login
register
mail settings
Submitter Mihai Lindner
Date Dec. 13, 2012, 10:55 a.m.
Message ID <1355396125-13866-1-git-send-email-mihaix.lindner@linux.intel.com>
Download mbox | patch
Permalink /patch/40901/
State New
Headers show

Comments

Mihai Lindner - Dec. 13, 2012, 10:55 a.m.
Change to use bb.error instead of print, or maybe that was desired (?)
Also remove a tab, while in the neighborhood.

Signed-off-by: Mihai Lindner <mihaix.lindner@linux.intel.com>
---
 bitbake/lib/bb/ui/knotty.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index be63e73..a2983ca 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -146,7 +146,7 @@  class TerminalFilter(object):
             import curses
         except ImportError:
             sys.exit("FATAL: The knotty ui could not load the required curses python module.")
-	
+
         import termios
         self.curses = curses
         self.termios = termios
@@ -329,7 +329,7 @@  def main(server, eventHandler, tf = TerminalFilter):
                 logfile = event.logfile
                 if logfile and os.path.exists(logfile):
                     termfilter.clearFooter()
-                    print("ERROR: Logfile of failure stored in: %s" % logfile)
+                    bb.error("Logfile of failure stored in: %s" % logfile)
                     if includelogs and not event.errprinted:
                         print("Log data follows:")
                         f = open(logfile, "r")