[oe-commits] [meta-openembedded] 02/07: python-pywbem: solved the conflict with python3-pywbem

git at git.openembedded.org git at git.openembedded.org
Thu Jun 13 18:11:21 UTC 2019


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

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

commit 664b5ec5dfb773b1776b57191045703688050428
Author: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
AuthorDate: Thu Jun 13 11:25:33 2019 +0800

    python-pywbem: solved the conflict with python3-pywbem
    
    -Use update-alternatives class to resolve conflicts with python3-pywbem.
    
    Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-python/recipes-extended/pywbem/python-pywbem_0.11.0.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta-python/recipes-extended/pywbem/python-pywbem_0.11.0.bb b/meta-python/recipes-extended/pywbem/python-pywbem_0.11.0.bb
index 7410749..a699f1c 100644
--- a/meta-python/recipes-extended/pywbem/python-pywbem_0.11.0.bb
+++ b/meta-python/recipes-extended/pywbem/python-pywbem_0.11.0.bb
@@ -1,5 +1,5 @@
 require python-pywbem.inc
-inherit setuptools
+inherit setuptools update-alternatives
 
 DEPENDS += " \
     ${PYTHON_PN}-m2crypto-native \
@@ -11,3 +11,10 @@ RDEPENDS_${PN}_class-target += "\
     ${PYTHON_PN}-m2crypto \
     ${PYTHON_PN}-subprocess \
 "
+
+ALTERNATIVE_${PN} = "mof_compiler pywbemcli wbemcli"
+ALTERNATIVE_TARGET[mof_compiler] = "${bindir}/mof_compiler"
+ALTERNATIVE_TARGET[pywbemcli] = "${bindir}/pywbemcli"
+ALTERNATIVE_TARGET[wbemcli] = "${bindir}/wbemcli"
+
+ALTERNATIVE_PRIORITY = "30"

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


More information about the Openembedded-commits mailing list