Skip to contentSkip to conversation

selinux.bbclass: remove True option in getVar()

PATCH New Yi Zhao 1 participant 1 message Apr 2, 2020

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

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.

---
 classes/selinux.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/selinux.bbclass +2 -2
index fb0df27..13256d5 100644
@@ -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