selinux.bbclass: remove True option in getVar()
PATCH 1/1 selinux.bbclass: remove True option in getVar()
The getVar() defaults to expanding by default, thus remove the True option from all getVar() calls.
Signed-off-by Yi Zhao <[email protected]>
--- classes/selinux.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
classes/selinux.bbclass +2 -2
@@ -2,8 +2,8 @@ def target_selinux(d, truevar = 'selinux', falsevar = ''): if not bb.utils.contains("DISTRO_FEATURES", "selinux", True, False, d): return falsevar - pn = d.getVar("PN", True) - type = pn.replace(d.getVar("BPN", True), "") + pn = d.getVar("PN") + type = pn.replace(d.getVar("BPN"), "") if type in ("-native", "nativesdk-", "-cross", "-crosssdk"): return falsevar
Signature · 1 line
2.17.1