summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/libselinux-python.inc
diff options
context:
space:
mode:
authorJoe MacDonald <joe_macdonald@mentor.com>2020-04-03 08:48:01 -0400
committerJoe MacDonald <joe_macdonald@mentor.com>2020-04-03 08:48:01 -0400
commit1e2fdbe71eb555e402244be2510f2fce0e6c5ee7 (patch)
tree4806e6c05ed45cd31a42c1d3cde0ec03ee4cf43f /recipes-security/selinux/libselinux-python.inc
parentb7a45110681620b4fe61c07bf106cf5ab0f7b39b (diff)
downloadmeta-selinux-1e2fdbe71eb555e402244be2510f2fce0e6c5ee7.tar.gz
clean up getVar() usage
83eac4de updated the usage of getVar() in classes/selinux.bbclass to leave out the default expand parameter. This is consistent with the usage in the core layers. Bring all other calls to getVar() in the layer into alignment with this approach. Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'recipes-security/selinux/libselinux-python.inc')
-rw-r--r--recipes-security/selinux/libselinux-python.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-security/selinux/libselinux-python.inc b/recipes-security/selinux/libselinux-python.inc
index 24407e8..6a64473 100644
--- a/recipes-security/selinux/libselinux-python.inc
+++ b/recipes-security/selinux/libselinux-python.inc
@@ -14,7 +14,7 @@ RDEPENDS_${PN} += "libselinux python3-core python3-shell"
14 14
15def get_policyconfigarch(d): 15def get_policyconfigarch(d):
16 import re 16 import re
17 target = d.getVar('TARGET_ARCH', True) 17 target = d.getVar('TARGET_ARCH')
18 p = re.compile('i.86') 18 p = re.compile('i.86')
19 target = p.sub('i386',target) 19 target = p.sub('i386',target)
20 return "ARCH=%s" % (target) 20 return "ARCH=%s" % (target)