From: Richard Purdie Date: Tue, 15 Oct 2013 13:39:55 +0000 (+0100) Subject: nativesdk: Fix pn check X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bece4b9e62eaa6d3b74390e9009ed2ebf72ede5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git nativesdk: Fix pn check There are missing brackets in the check meaning MLPREFIX doesn't get set for nativesdk-qemu-helper when it should be. (From OE-Core rev: 5011f4bc8a418d0616d2936b60ecb7ca156632a3) Signed-off-by: Richard Purdie --- diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index ed276ef0a49..94bc3266718 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass @@ -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-")