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 463B613827E for ; Fri, 24 Jan 2014 01:06:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A453E09B2; Fri, 24 Jan 2014 01:06:02 +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 BE1DAE0954 for ; Fri, 24 Jan 2014 01:06:01 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A793B335DEE for ; Fri, 24 Jan 2014 01:06:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 61895183B3 for ; Fri, 24 Jan 2014 01:05:59 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1390525335.1f974c2e3fd1a9124134cc28f6e2d93b214c3c4d.radhermit@gentoo> Subject: [gentoo-commits] proj/zsh-completion:master commit in: / X-VCS-Repository: proj/zsh-completion X-VCS-Files: _eselect X-VCS-Directories: / X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: 1f974c2e3fd1a9124134cc28f6e2d93b214c3c4d X-VCS-Branch: master Date: Fri, 24 Jan 2014 01:05:59 +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: 35bd34c9-6955-4918-8d53-9144a88302cc X-Archives-Hash: c6ace12f652f66745afdeacfa4ec9efc commit: 1f974c2e3fd1a9124134cc28f6e2d93b214c3c4d Author: Vikraman Choudhury gentoo org> AuthorDate: Thu Jan 23 22:47:16 2014 +0000 Commit: Tim Harder gentoo org> CommitDate: Fri Jan 24 01:02:15 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=1f974c2e Use --{color,colour} options --no-{color,colour} is deprecated and removed in eselect 1.4. --- _eselect | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/_eselect b/_eselect index 130016a..5b15d50 100644 --- a/_eselect +++ b/_eselect @@ -15,7 +15,7 @@ _eselect_env () { _eselect_binutils () { local binutilslist if (( $words[(I)(set)] )); then - binutilslist=(${${${(M)${(f)"$(eselect --no-color binutils list)"}## *}// \**/}//( \[*\] | \[*\] )/}) + binutilslist=(${${${(M)${(f)"$(eselect --color=no binutils list)"}## *}// \**/}//( \[*\] | \[*\] )/}) _values "available binutils version" $binutilslist[@] && return 0 fi _values "binutils options" \ @@ -30,7 +30,7 @@ _eselect_binutils () { _eselect_kernel () { local kernellist if (( $words[(I)(set)] )); then - kernellist=(${${${(M)${(f)"$(eselect --no-color kernel list)"}## *}// \**/}//( \[*\] | \[*\] )/}) + kernellist=(${${${(M)${(f)"$(eselect --color=no kernel list)"}## *}// \**/}//( \[*\] | \[*\] )/}) _values "available kernel version" $kernellist[@] && return 0 fi _values "kenrel options" \ @@ -44,7 +44,7 @@ _eselect_kernel () { _eselect_ctags () { local ctagslist if (( $words[(I)(set)] )); then - ctagslist=(${${${(M)${(f)"$(eselect --no-color ctags list)"}## *}// \**/}//( \[*\] | \[*\] )/}) + ctagslist=(${${${(M)${(f)"$(eselect --color=no ctags list)"}## *}// \**/}//( \[*\] | \[*\] )/}) _values "available ctags version" $ctagslist[@] && return 0 fi _values "ctags options" \ @@ -59,7 +59,7 @@ _eselect_ctags () { _eselect_profile () { local profilelist if (( $words[(I)(set)] )); then - profilelist=(${${${(M)${(f)"$(eselect --no-color profile list)"}## *}// \**/}//( \[*\] | \[*\] )/}) + profilelist=(${${${(M)${(f)"$(eselect --color=no profile list)"}## *}// \**/}//( \[*\] | \[*\] )/}) _values -w "available profiles" $profilelist[@] \ "--force[Forcibly set the symlink]" && return 0 fi @@ -74,10 +74,10 @@ _eselect_profile () { _eselect_fontconfig () { local fclistenabled fclistdisabled if (( $words[(I)(enable)] )); then - fclistdisabled=(${${${${(M)${(f)"$(eselect --no-color fontconfig list)"}## *}#*\*}// \**/}//( \[*\] | \[*\] )/}) + fclistdisabled=(${${${${(M)${(f)"$(eselect --color=no fontconfig list)"}## *}#*\*}// \**/}//( \[*\] | \[*\] )/}) _values -w ".conf to enable" $fclistdisabled[@] && return 0 elif (( $words[(I)(disable)] )); then - fclistenabled=(${${${(M)${(M)${(f)"$(eselect --no-color fontconfig list)"}## *}#*\*}// \**/}//( \[*\] | \[*\] )/}) + fclistenabled=(${${${(M)${(M)${(f)"$(eselect --color=no fontconfig list)"}## *}#*\*}// \**/}//( \[*\] | \[*\] )/}) _values -w ".conf to disable" $fclistenabled[@] && return 0 fi _values "fontconfig options" \ @@ -91,7 +91,7 @@ _eselect_fontconfig () { _eselect_opengl () { local opengllist if (( $words[(I)(set)] )); then - opengllist=(${${${(M)${(f)"$(eselect --no-color opengl list)"}## *}// \**/}//( \[*\] | \[*\] )/}) + opengllist=(${${${(M)${(f)"$(eselect --color=no opengl list)"}## *}// \**/}//( \[*\] | \[*\] )/}) _values -w "opengl implementations and options" $opengllist[@] \ "--use-old[If an implementationis already set, use that one instead]" \ "--prefix[Set the source prefix]:path:_files -/" \ @@ -109,7 +109,7 @@ _eselect_opengl () { _eselect_vi () { local vilist if (( $words[(I)(set)] )); then - vilist=(${${${(M)${(f)"$(eselect --no-color vi list)"}## *}// \**/}//( \[*\] | \[*\] )/}) + vilist=(${${${(M)${(f)"$(eselect --color=no vi list)"}## *}// \**/}//( \[*\] | \[*\] )/}) _values -w "vi implementation" $vilist[@] && return 0 elif (( $words[(I)(update)] )); then _values -w "option" "--if-unset[Do not override existing implementation]" && return 0 @@ -127,35 +127,35 @@ _eselect () { local globopts sedcmd modnames modopts globopts=( - "--no-colour[Disable coloured output]" \ - "--no-color[Disable coloured output]" + "--colour=no[Disable coloured output]" \ + "--color=no[Disable coloured output]" ) - modnames=(${${${(M)${(f)"$(eselect --no-color list-modules)"}## *}// */}// /}) + modnames=(${${${(M)${(f)"$(eselect --color=no list-modules)"}## *}// */}// /}) if ((CURRENT == 2)); then _arguments -s \ "$globopts[@]" \ "*:portage:_values 'eselect modules' \$modnames[@]" && return 0 elif ((CURRENT == 3)); then - if [[ $words[2] == --no-colour || $words[2] == --no-color ]]; then + if [[ $words[2] == --colour=no || $words[2] == --color=no ]]; then _arguments -s \ "*:portage:_values 'eselect modules' \$modnames[@]" && return 0 elif (( $modnames[(I)$words[2]] )); then if [[ "$words[2]" == (env|binutils|kernel|ctags|profile|fontconfig|opengl|vi) ]]; then _eselect_$words[2] "$@" else - modopts=(${${${(M)${(f)"$(eselect --no-color $words[2] usage)"}## *}// */}// /}) + modopts=(${${${(M)${(f)"$(eselect --color=no $words[2] usage)"}## *}// */}// /}) _arguments -s \ "*:portage:_values 'eselect $words[2] options' \$modopts[@]" && return 0 fi fi elif ((CURRENT >= 4)); then - if (( $words[(I)(--no-color|--no-colour)] )); then + if (( $words[(I)(--color=no|--colour=no)] )); then if (( $modnames[(I)$words[3]] )); then if [[ "$words[3]" == (env|binutils|kernel|ctags|profile|fontconfig|opengl|vi) ]]; then _eselect_$words[3] "$@" else - modopts=(${${${${(M)${(f)"$(eselect --no-color $words[3] usage)"}## *}// */}// /}// *}) + modopts=(${${${${(M)${(f)"$(eselect --color=no $words[3] usage)"}## *}// */}// /}// *}) _arguments -s \ "*:portage:_values 'eselect $words[3] options' \$modopts[@]" && return 0 fi