From fddc16989ddb181800eb6ec383b431e00d79f286 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 22 Aug 2012 16:14:38 +0100 Subject: bitbake: cooker: fix traceback when using -b with skipped recipe If a recipe is skipped during parsing for whatever reason, check and report this as an error rather than trying to use the data that is sent back and failing. Fixes [YOCTO #2976]. (Bitbake rev: a324df40243fa55ccc89fd5970d46f25330d0a0d) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 1737e548cf..a6b848ec9d 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1060,6 +1060,10 @@ class BBCooker: info_array = infos[fn] except KeyError: bb.fatal("%s does not exist" % fn) + + if info_array[0].skipped: + bb.fatal("%s was skipped: %s" % (fn, info_array[0].skipreason)) + self.status.add_from_recipeinfo(fn, info_array) # Tweak some variables -- cgit v1.2.3-54-g00ecf