diff options
author | Joe MacDonald <joe_macdonald@mentor.com> | 2020-04-03 08:48:01 -0400 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2020-04-03 08:48:01 -0400 |
commit | 1e2fdbe71eb555e402244be2510f2fce0e6c5ee7 (patch) | |
tree | 4806e6c05ed45cd31a42c1d3cde0ec03ee4cf43f /recipes-security/selinux/libselinux-python.inc | |
parent | b7a45110681620b4fe61c07bf106cf5ab0f7b39b (diff) | |
download | meta-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.inc | 2 |
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 | ||
15 | def get_policyconfigarch(d): | 15 | def 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) |