From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A7D80138ACE for ; Fri, 19 Dec 2014 07:28:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A6FCE0CC9; Fri, 19 Dec 2014 07:28:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 90125E0CCC for ; Fri, 19 Dec 2014 07:28:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D82F7340649 for ; Fri, 19 Dec 2014 07:28:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 85091CD44 for ; Fri, 19 Dec 2014 07:28:53 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1418972055.cb12846c46545f39ddcdc3b0d08dc390670c271f.ulm@gentoo> Subject: [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ctags.eselect emacs.eselect X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: cb12846c46545f39ddcdc3b0d08dc390670c271f X-VCS-Branch: eselect-emacs Date: Fri, 19 Dec 2014 07:28:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ab22f007-be61-4cf5-9b3c-b270d23db79a X-Archives-Hash: 3f7bba3f7564f45cf502bd3992029e23 commit: cb12846c46545f39ddcdc3b0d08dc390670c271f Author: Ulrich Müller gentoo org> AuthorDate: Fri Dec 19 06:54:15 2014 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Fri Dec 19 06:54:15 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=cb12846c Use consistent style with a single equals sign for tests. --- ctags.eselect | 6 +++--- emacs.eselect | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ctags.eselect b/ctags.eselect index fd6f9b7..5325536 100644 --- a/ctags.eselect +++ b/ctags.eselect @@ -192,7 +192,7 @@ do_update() { [[ $# -gt 2 ]] && die -q "Too many parameters" test_for_root - if ! [[ $1 == *if*unset \ + if ! [[ $1 = *if*unset \ && -L ${EROOT}/usr/bin/${CTAGS} && -e ${EROOT}/usr/bin/${CTAGS} ]] then local current="" @@ -217,9 +217,9 @@ do_update() { local i target targets=( $(find_targets) ) if [[ ${#targets[@]} -gt 0 && ${current} != nolink ]]; then target=${targets[0]} - [[ ${current} == ${CTAGS}-*emacs* ]] && current=${CTAGS}-*emacs* + [[ ${current} = ${CTAGS}-*emacs* ]] && current=${CTAGS}-*emacs* for i in ${targets[@]}; do - [[ ${i} == ${current} ]] && target=${i} + [[ ${i} = ${current} ]] && target=${i} done set_symlinks "${target}" || die -q "Couldn't set a new symlink" fi diff --git a/emacs.eselect b/emacs.eselect index 4b3a8e9..7b63e59 100644 --- a/emacs.eselect +++ b/emacs.eselect @@ -248,7 +248,7 @@ do_update() { test_for_root if [[ -L ${EROOT}/usr/bin/emacs ]]; then - if [[ $1 == *if*unset && -e ${EROOT}/usr/bin/emacs ]]; then + if [[ $1 = *if*unset && -e ${EROOT}/usr/bin/emacs ]]; then do_action ctags update ifunset return fi