]> code.ossystems Code Review - openembedded-core.git/commitdiff
nativesdk: Fix pn check
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Oct 2013 13:39:55 +0000 (14:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Oct 2013 12:27:46 +0000 (13:27 +0100)
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>
meta/classes/nativesdk.bbclass

index ed276ef0a4949e2b9c1ad9a93c0e8448e89d7d19..94bc3266718d68b888468981766a992b3d965a42 100644 (file)
@@ -59,7 +59,7 @@ 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-")):
         return
 
     e.data.setVar("MLPREFIX", "nativesdk-")