Skip to contentSkip to conversation

nativesdk: Fix pn check

PATCH Richard Purdie 1 participant 1 message Oct 15, 2013

lore
Share & tools
lore
#0 lore raw

There are missing brackets in the check meaning MLPREFIX doesn't get set for nativesdk-qemu-helper when it should be.

---

meta/classes/nativesdk.bbclass +2 -1
index ed276ef..e092b3b 100644
@@ -59,7 +59,8 @@ export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
 
 python nativesdk_virtclass_handler () {
     pn = e.data.getVar("PN", True)
-    if not pn.endswith("-nativesdk") or pn.startswith("nativesdk-"):
+    if not (pn.endswith("-nativesdk") or pn.startswith("nativesdk-")):
+        bb.warn(str(pn))
         return
 
     e.data.setVar("MLPREFIX", "nativesdk-")