Patchwork nativesdk: Fix pn check

login
register
mail settings
Submitter Richard Purdie
Date Oct. 15, 2013, 1:39 p.m.
Message ID <1381844395.29912.421.camel@ted>
Download mbox | patch
Permalink /patch/59925/
State New
Headers show

Comments

Richard Purdie - Oct. 15, 2013, 1:39 p.m.
There are missing brackets in the check meaning MLPREFIX doesn't
get set for nativesdk-qemu-helper when it should be.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index ed276ef..e092b3b 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -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-")