Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 19 Apr 2021 20:11:43
Message-Id: 1618862897.56333bf085908afbadbbc25a5f58f39f804391e5.ulm@gentoo
1 commit: 56333bf085908afbadbbc25a5f58f39f804391e5
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 15 18:38:49 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 19 20:08:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56333bf0
7
8 elisp-common.eclass: Use "==" in tests throughout
9
10 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
11
12 eclass/elisp-common.eclass | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15 diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
16 index 90621cbe7b9..bce3fd0cec0 100644
17 --- a/eclass/elisp-common.eclass
18 +++ b/eclass/elisp-common.eclass
19 @@ -390,7 +390,7 @@ elisp-site-file-install() {
20 [[ ${sf%-gentoo*.el} != "${sf}" ]] && sf="${sf%-gentoo*.el}-gentoo.el"
21 sf="${T}/${sf}"
22 ebegin "Installing site initialisation file for GNU Emacs"
23 - [[ $1 = "${sf}" ]] || cp "$1" "${sf}"
24 + [[ $1 == "${sf}" ]] || cp "$1" "${sf}"
25 if [[ ${EAPI} == 5 ]]; then
26 grep -q "@EMACSMODULES@" "${sf}" \
27 && die "${ECLASS}: Dynamic modules not supported in EAPI ${EAPI}"
28 @@ -421,7 +421,7 @@ elisp-site-regen() {
29 local sf i ret=0 null="" page=$'\f'
30 local -a sflist
31
32 - if [[ ${EBUILD_PHASE} = *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then
33 + if [[ ${EBUILD_PHASE} == *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then
34 ewarn "Refusing to create site-gentoo.el in ${EBUILD_PHASE} phase."
35 return 0
36 fi
37 @@ -476,7 +476,7 @@ elisp-site-regen() {
38 mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el
39 eend $? "elisp-site-regen: Replacing site-gentoo.el failed" || die
40 case ${#sflist[@]} in
41 - 0) [[ ${PN} = emacs-common ]] \
42 + 0) [[ ${PN} == emacs-common ]] \
43 || ewarn "... Huh? No site initialisation files found." ;;
44 1) einfo "... ${#sflist[@]} site initialisation file included." ;;
45 *) einfo "... ${#sflist[@]} site initialisation files included." ;;