]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
knotty: use bb.error instead of print
authorMihai Lindner <mihaix.lindner@linux.intel.com>
Thu, 13 Dec 2012 10:55:25 +0000 (12:55 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Dec 2012 13:05:15 +0000 (13:05 +0000)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/knotty.py

index be63e730f099e1d5d5d79f046f0a54c04a7977ae..a2983ca3a408c4dbeca627e944d2463339a9f464 100644 (file)
@@ -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")