Skip to contentSkip to conversation

cooker: fix traceback when using -b with skipped recipe

PATCH Applied Paul Eggleton 2 participants 2 messages Aug 22, 2012 – Aug 23, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/lib/bb/cooker.py |    4 ++++
 1 file changed, 4 insertions(+)
bitbake/lib/bb/cooker.py +4 -0
index 1737e54..a6b848e 100644
@@ -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
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 10 lines · Paul Eggleton

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/lib/bb/cooker.py |    4 ++++
 1 file changed, 4 insertions(+)

Merged to master, thanks.

Richard