Skip to contentSkip to conversation

bitbake: bitbake-layers: add skip reason to output

PATCH New Marco Felsch 1 participant 1 message Aug 17, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: bitbake-layers: add skip reason to output

Currently we inform the user that some package/layer is skipped but we don't print the reason albeit bitbake knows the reason. So currently it looks like:

gtk+:
meta-oe 2.24.32 (skipped)

With this change the output prints the skip reason which is very helpful for debugging:

gtk+:
meta-oe 2.24.32 (skipped: one of 'x11 directfb' needs to be in DISTRO_FEATURES)

---
 bitbake/lib/bblayers/query.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bblayers/query.py +1 -1
index 947422a72f..6e94c83076 100644
@@ -154,7 +154,7 @@ skipped recipes will also be listed, with a " (skipped)" suffix.
         def print_item(f, pn, ver, layer, ispref):
             if not selected_layer or layer == selected_layer:
                 if not bare and f in skiplist:
-                    skipped = ' (skipped)'
+                    skipped = ' (skipped: %s)' % self.tinfoil.cooker.skiplist[f].skipreason
                 else:
                     skipped = ''
                 if show_filenames:
Signature · 1 line
2.30.2