commit:     88e177e71dfd56ceb8c365a2ba1e70f489641630
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 24 03:46:39 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Mar 26 11:36:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88e177e7

selinux-policy-2.eclass: fix spelling

Thanks to codespell.

Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/selinux-policy-2.eclass | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass
index 7d4f438c65f5..ad760673cab1 100644
--- a/eclass/selinux-policy-2.eclass
+++ b/eclass/selinux-policy-2.eclass
@@ -174,7 +174,7 @@ selinux-policy-2_src_prepare() {
                done
        fi
 
-       # Apply the additional patches refered to by the module ebuild.
+       # Apply the additional patches referred to by the module ebuild.
        # But first some magic to differentiate between bash arrays and strings
        if [[ "$(declare -p POLICY_PATCH 2>/dev/null 2>&1)" == "declare -a"* 
]]; then
                [[ -n ${POLICY_PATCH[*]} ]] && eapply -d 
"${S}/refpolicy/policy/modules" -- "${POLICY_PATCH[@]}"
@@ -303,7 +303,7 @@ selinux-policy-2_pkg_postinst() {
                                ewarn "If it is the last SELinux module package 
being installed however,"
                                ewarn "then it is advised to look at the error 
above and take appropriate"
                                ewarn "action since the new SELinux policies 
are not loaded until the"
-                               ewarn "command finished succesfully."
+                               ewarn "command finished successfully."
                                ewarn ""
                                ewarn "To reload, run the following command 
from within /usr/share/selinux/${i}:"
                                ewarn "  semodule ${COMMAND_base} -i \$(ls *.pp 
| grep -v base.pp)"
@@ -311,10 +311,10 @@ selinux-policy-2_pkg_postinst() {
                                ewarn "  semodule ${COMMAND_base} -i \$(ls *.pp 
| grep -v base.pp | grep -v unconfined.pp)"
                                ewarn "depending on if you need the unconfined 
domain loaded as well or not."
                        else
-                               einfo "SELinux modules reloaded succesfully."
+                               einfo "SELinux modules reloaded successfully."
                        fi
                else
-                       einfo "SELinux modules loaded succesfully."
+                       einfo "SELinux modules loaded successfully."
                fi
                COMMAND="";
        done
@@ -360,7 +360,7 @@ selinux-policy-2_pkg_postrm() {
                        if [[ $? -ne 0 ]]; then
                                ewarn "SELinux module unload failed.";
                        else
-                               einfo "SELinux modules unloaded succesfully."
+                               einfo "SELinux modules unloaded successfully."
                        fi
                done
        fi

Reply via email to