* [PATCH] bitbake/ui/knotty: Ensure 'No Provider' errors set an exit code
@ 2011-08-09 13:43 Richard Purdie
2011-08-09 16:25 ` Joshua Lock
0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2011-08-09 13:43 UTC (permalink / raw)
To: bitbake-devel
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@linuxfoundation.org>
---
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:
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] bitbake/ui/knotty: Ensure 'No Provider' errors set an exit code
2011-08-09 13:43 [PATCH] bitbake/ui/knotty: Ensure 'No Provider' errors set an exit code Richard Purdie
@ 2011-08-09 16:25 ` Joshua Lock
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Lock @ 2011-08-09 16:25 UTC (permalink / raw)
To: bitbake-devel
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@linuxfoundation.org>
Signed-off-by: Joshua Lock <josh@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@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel
--
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-09 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09 13:43 [PATCH] bitbake/ui/knotty: Ensure 'No Provider' errors set an exit code Richard Purdie
2011-08-09 16:25 ` Joshua Lock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox