[bitbake-devel] Paul Eggleton : bitbake/knotty: don't count errors as warnings in summary

Chris Larson clarson at kergoth.com
Sun Jan 15 16:02:13 UTC 2012


On Sun, Jan 15, 2012 at 3:15 AM,  <git at git.openembedded.org> wrote:
> 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:

Just as an FYI, this could have remained as >=, given the elif fixes
the error matching issue. It doesn't matter for us, as I don't think
we have any message levels higher than warning but lower than error,
but wanted to note it for future reference.
-- 
Christopher Larson




More information about the bitbake-devel mailing list