[oe-commits] Richard Purdie : nativesdk: Fix pn check
git at git.openembedded.org
git at git.openembedded.org
Wed Oct 16 12:18:43 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 5011f4bc8a418d0616d2936b60ecb7ca156632a3
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5011f4bc8a418d0616d2936b60ecb7ca156632a3
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Tue Oct 15 14:39:55 2013 +0100
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.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/nativesdk.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index ed276ef..94bc326 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-")
More information about the Openembedded-commits
mailing list