Skip to contentSkip to conversation

base.bbclass: include PV in 'incompatible license but whitelisted' debug

PATCH New Andre McCurdy 1 participant 1 message Mar 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 base.bbclass: include PV in 'incompatible license but whitelisted' debug

Referencing PN only is ambiguous if multiple versions of a recipe are present.

---
 meta/classes/base.bbclass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/classes/base.bbclass +3 -2
index e066dc9..b624dde 100644
@@ -544,10 +544,11 @@ python () {
                     bb.debug(1, "SKIPPING recipe %s because it's %s" % (pn, recipe_license))
                     raise bb.parse.SkipPackage("incompatible with license %s" % recipe_license)
             elif pn in whitelist:
+                p = d.getVar('P', True)
                 if pn in incompatwl:
-                    bb.note("INCLUDING " + pn + " as buildable despite INCOMPATIBLE_LICENSE because it has been whitelisted")
+                    bb.note("INCLUDING " + p + " as buildable despite INCOMPATIBLE_LICENSE because it has been whitelisted")
                 elif pn in htincompatwl:
-                    bb.note("INCLUDING " + pn + " as buildable despite INCOMPATIBLE_LICENSE because it has been whitelisted for HOSTTOOLS")
+                    bb.note("INCLUDING " + p + " as buildable despite INCOMPATIBLE_LICENSE because it has been whitelisted for HOSTTOOLS")
 
     needsrcrev = False
     srcuri = d.getVar('SRC_URI', True)
Signature · 1 line
1.9.1