summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-08-17 14:23:09 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-08-17 15:05:06 +0800
commita6f0b8e3f68885e0f5796c47a7e5b3e068c1d55f (patch)
tree97d435aafddcf6b8729f19c8388c411624ce2168
parent164063e8396098239aeb3dd4faa6f6b35a6a96da (diff)
downloadmeta-selinux-a6f0b8e3f68885e0f5796c47a7e5b3e068c1d55f.tar.gz
libselinux: Fix indent warning for python codes.
Fix these warnings: =================== WARNING: Variable get_git_policyconfigarch contains tabs, please remove these(....) Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/selinux/libselinux_2.1.9.bb10
-rw-r--r--recipes-security/selinux/libselinux_git.bb10
2 files changed, 10 insertions, 10 deletions
diff --git a/recipes-security/selinux/libselinux_2.1.9.bb b/recipes-security/selinux/libselinux_2.1.9.bb
index fdc3b30..25d8519 100644
--- a/recipes-security/selinux/libselinux_2.1.9.bb
+++ b/recipes-security/selinux/libselinux_2.1.9.bb
@@ -22,11 +22,11 @@ FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinu
22FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*" 22FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*"
23 23
24def get_policyconfigarch(d): 24def get_policyconfigarch(d):
25 import re 25 import re
26 target = d.getVar('TARGET_ARCH', True) 26 target = d.getVar('TARGET_ARCH', True)
27 p = re.compile('i.86') 27 p = re.compile('i.86')
28 target = p.sub('i386',target) 28 target = p.sub('i386',target)
29 return "ARCH=%s" % (target) 29 return "ARCH=%s" % (target)
30EXTRA_OEMAKE += "${@get_policyconfigarch(d)}" 30EXTRA_OEMAKE += "${@get_policyconfigarch(d)}"
31 31
32do_compile_append() { 32do_compile_append() {
diff --git a/recipes-security/selinux/libselinux_git.bb b/recipes-security/selinux/libselinux_git.bb
index 85bc1f9..719ce4c 100644
--- a/recipes-security/selinux/libselinux_git.bb
+++ b/recipes-security/selinux/libselinux_git.bb
@@ -21,11 +21,11 @@ FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinu
21FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*" 21FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*"
22 22
23def get_git_policyconfigarch(d): 23def get_git_policyconfigarch(d):
24 import re 24 import re
25 target = d.getVar('TARGET_ARCH', True) 25 target = d.getVar('TARGET_ARCH', True)
26 p = re.compile('i.86') 26 p = re.compile('i.86')
27 target = p.sub('i386',target) 27 target = p.sub('i386',target)
28 return "ARCH=%s" % (target) 28 return "ARCH=%s" % (target)
29EXTRA_OEMAKE += "${@get_git_policyconfigarch(d)}" 29EXTRA_OEMAKE += "${@get_git_policyconfigarch(d)}"
30 30
31do_compile_append() { 31do_compile_append() {