[bitbake-devel] [PATCH] bitbake/ui/knotty: Ensure 'No Provider' errors set an exit code

Joshua Lock josh at linux.intel.com
Tue Aug 9 16:25:31 UTC 2011


On Tue, 2011-08-09 at 14:43 +0100, Richard Purdie wrote:
> If a No Provider error is shown we need to set the exit code to
> show an error occured too.
> 
> [YOCTO #1322]
> 
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

Signed-off-by: Joshua Lock <josh at linux.intel.com>

> ---
> diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
> index b7abdf8..63b8dc6 100644
> --- a/bitbake/lib/bb/ui/knotty.py
> +++ b/bitbake/lib/bb/ui/knotty.py
> @@ -199,6 +199,7 @@ def main(server, eventHandler):
>                  logger.info("consider defining a PREFERRED_PROVIDER entry to match %s", event._item)
>                  continue
>              if isinstance(event, bb.event.NoProvider):
> +                return_value = 1
>                  if event._runtime:
>                      r = "R"
>                  else:
> 
> 
> 
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel

-- 
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre





More information about the bitbake-devel mailing list