From patchwork Sun Jan 15 10:15:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] Paul Eggleton : bitbake/knotty: don't count errors as warnings in summary Date: Sun, 15 Jan 2012 10:15:10 -0000 From: git@git.openembedded.org X-Patchwork-Id: 19393 Message-Id: <20120115101510.A4BD610337@opal> To: bitbake-devel@lists.openembedded.org Module: bitbake.git Branch: master Commit: d242d6ca81dd83b2b13a3ac77ac4cd829a69cf83 URL: http://git.openembedded.org/?p=bitbake.git&a=commit;h=d242d6ca81dd83b2b13a3ac77ac4cd829a69cf83 Author: Paul Eggleton Date: Fri Jan 13 17:01:45 2012 +0000 bitbake/knotty: don't count errors as warnings in summary The count of warnings being shown in the summary at the end was also including the number of errors. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- lib/bb/ui/knotty.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index 0340619..5366386 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -127,7 +127,7 @@ def main(server, eventHandler): if event.levelno >= format.ERROR: errors = errors + 1 return_value = 1 - if event.levelno >= format.WARNING: + elif event.levelno == format.WARNING: warnings = warnings + 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