diff options
author | Sven Vermeulen <sven.vermeulen@siphos.be> | 2011-08-03 13:12:43 +0200 |
---|---|---|
committer | Sven Vermeulen <sven.vermeulen@siphos.be> | 2011-08-03 13:12:43 +0200 |
commit | 0223c058850ff90c8d6495f3408c0e0445198d9e (patch) | |
tree | 9796e76ff4e8de78ba6d5dbe23091f1c7038b6b0 /eclass | |
parent | Make BASEPOL checks consistent with POLICY_PATCH checks, thanks to Peter Volk... (diff) | |
download | hardened-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.eclass | 7 |
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 |