commit:     56333bf085908afbadbbc25a5f58f39f804391e5
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 15 18:38:49 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Apr 19 20:08:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56333bf0

elisp-common.eclass: Use "==" in tests throughout

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

 eclass/elisp-common.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 90621cbe7b9..bce3fd0cec0 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -390,7 +390,7 @@ elisp-site-file-install() {
        [[ ${sf%-gentoo*.el} != "${sf}" ]] && sf="${sf%-gentoo*.el}-gentoo.el"
        sf="${T}/${sf}"
        ebegin "Installing site initialisation file for GNU Emacs"
-       [[ $1 = "${sf}" ]] || cp "$1" "${sf}"
+       [[ $1 == "${sf}" ]] || cp "$1" "${sf}"
        if [[ ${EAPI} == 5 ]]; then
                grep -q "@EMACSMODULES@" "${sf}" \
                        && die "${ECLASS}: Dynamic modules not supported in 
EAPI ${EAPI}"
@@ -421,7 +421,7 @@ elisp-site-regen() {
        local sf i ret=0 null="" page=$'\f'
        local -a sflist
 
-       if [[ ${EBUILD_PHASE} = *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then
+       if [[ ${EBUILD_PHASE} == *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then
                ewarn "Refusing to create site-gentoo.el in ${EBUILD_PHASE} 
phase."
                return 0
        fi
@@ -476,7 +476,7 @@ elisp-site-regen() {
                mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el
                eend $? "elisp-site-regen: Replacing site-gentoo.el failed" || 
die
                case ${#sflist[@]} in
-                       0) [[ ${PN} = emacs-common ]] \
+                       0) [[ ${PN} == emacs-common ]] \
                                || ewarn "... Huh? No site initialisation files 
found." ;;
                        1) einfo "... ${#sflist[@]} site initialisation file 
included." ;;
                        *) einfo "... ${#sflist[@]} site initialisation files 
included." ;;

Reply via email to