All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-selinux][PATCH] selinux.bbclass: remove True option in getVar()
@ 2020-04-02  9:12 Yi Zhao
  0 siblings, 0 replies; only message in thread
From: Yi Zhao @ 2020-04-02  9:12 UTC (permalink / raw)
  To: joe, yocto

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(-)

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
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-02  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02  9:12 [meta-selinux][PATCH] selinux.bbclass: remove True option in getVar() Yi Zhao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.