summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-08-22 16:14:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-23 09:22:42 +0100
commitfddc16989ddb181800eb6ec383b431e00d79f286 (patch)
tree2252bcb28549c96ade71b18476f67c2061fe056d /bitbake/lib
parent8d333950263e0f02dbb4164cab8e88233d6d7732 (diff)
downloadpoky-fddc16989ddb181800eb6ec383b431e00d79f286.tar.gz
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 <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py4
1 files changed, 4 insertions, 0 deletions
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:
1060 info_array = infos[fn] 1060 info_array = infos[fn]
1061 except KeyError: 1061 except KeyError:
1062 bb.fatal("%s does not exist" % fn) 1062 bb.fatal("%s does not exist" % fn)
1063
1064 if info_array[0].skipped:
1065 bb.fatal("%s was skipped: %s" % (fn, info_array[0].skipreason))
1066
1063 self.status.add_from_recipeinfo(fn, info_array) 1067 self.status.add_from_recipeinfo(fn, info_array)
1064 1068
1065 # Tweak some variables 1069 # Tweak some variables