[meta-selinux] selinux.bbclass: remove True option in getVar()

Submitted by Yi Zhao on April 2, 2020, 9:12 a.m. | Patch ID: 171538

Details

Message ID 20200402091244.10662-1-yi.zhao@windriver.com
State New
Headers show

Commit Message

Yi Zhao April 2, 2020, 9:12 a.m.
The getVar() defaults to expanding by default, thus remove the True
option from all getVar() calls.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 classes/selinux.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/classes/selinux.bbclass b/classes/selinux.bbclass
index fb0df27..13256d5 100644
--- a/classes/selinux.bbclass
+++ b/classes/selinux.bbclass
@@ -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