[oe-commits] [meta-openembedded] 03/27: openlmi-tools: Only build if the necessary python pieces are available

git at git.openembedded.org git at git.openembedded.org
Thu Sep 7 09:17:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit ed1693c7076cff0a42f98e87fd5c5e4f06b5a1b1
Author: Mark Hatle <mark.hatle at windriver.com>
AuthorDate: Tue Sep 5 14:12:51 2017 -0500

    openlmi-tools: Only build if the necessary python pieces are available
    
    Since this isn't a python library it doesn't really belong to meta-python.
    But I couldn't figure out where else to move it to.
    
    Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
---
 meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb b/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
index b23869d..13e67cb 100644
--- a/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
+++ b/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
@@ -21,3 +21,8 @@ do_compile_prepend() {
 do_install_prepend() {
     cd cli
 }
+
+python() {
+    if 'meta-python' not in d.getVar('BBFILE_COLLECTIONS').split():
+        raise bb.parse.SkipRecipe('Requires meta-python to be present.')
+}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list