aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSven Vermeulen <sven.vermeulen@siphos.be>2011-08-03 13:12:43 +0200
committerSven Vermeulen <sven.vermeulen@siphos.be>2011-08-03 13:12:43 +0200
commit0223c058850ff90c8d6495f3408c0e0445198d9e (patch)
tree9796e76ff4e8de78ba6d5dbe23091f1c7038b6b0 /eclass
parentMake BASEPOL checks consistent with POLICY_PATCH checks, thanks to Peter Volk... (diff)
downloadhardened-dev-0223c058850ff90c8d6495f3408c0e0445198d9e.tar.gz
hardened-dev-0223c058850ff90c8d6495f3408c0e0445198d9e.tar.bz2
hardened-dev-0223c058850ff90c8d6495f3408c0e0445198d9e.zip
EAPI is a string, not a number. Use has function. Thanks to Peter Volkov (pva@g.o)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/selinux-policy-2.eclass7
1 files changed, 2 insertions, 5 deletions
diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass
index 6ae10461..61a67b5a 100644
--- a/eclass/selinux-policy-2.eclass
+++ b/eclass/selinux-policy-2.eclass
@@ -93,11 +93,8 @@ EXPORT_FUNCTIONS ${SELINUX_EXPF}
selinux-policy-2_src_unpack() {
unpack ${A}
- if [[ ${EAPI:-0} -le 1 ]];
- then
- # Call src_prepare explicitly for EAPI 0 or 1
- selinux-policy-2_src_prepare
- fi
+ # Call src_prepare explicitly for EAPI 0 or 1
+ has "${EAPI:-0}" 0 1 && selinux-policy-2_src_prepare
}
# @FUNCTION: selinux-policy-2_src_prepare