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

Richard Purdie richard.purdie at linuxfoundation.org
Tue Aug 9 13:43:23 UTC 2011


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>
---
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:






More information about the bitbake-devel mailing list