]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
knotty: If any error messages are seen, set our exit code accordingly
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Jun 2011 12:34:03 +0000 (13:34 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Jun 2011 12:36:32 +0000 (13:36 +0100)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/knotty.py

index 44d1c1dc92a6f296f9e2021915e6291ad7661451..f330c084dfc2021cbb695932ac8e1770aef0b02e 100644 (file)
@@ -111,7 +111,7 @@ def main(server, eventHandler):
                         print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task))
 
             if isinstance(event, logging.LogRecord):
-                if event.levelno >= format.CRITICAL:
+                if event.levelno >= format.ERROR:
                     return_value = 1
                 # For "normal" logging conditions, don't show note logs from tasks
                 # but do show them if the user has changed the default log level to