python3-pywbem:solved the conflict with python-pywbem

-Use update-alternatives class to resolve conflicts with python-pywbem.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zang Ruochen
2019-06-13 11:25:34 +08:00
committed by Khem Raj
parent cdc7467631
commit cc1ac60594
@@ -1,2 +1,9 @@
require python-pywbem.inc
inherit setuptools3
inherit setuptools3 update-alternatives
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 = "60"