Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/zsh-completion:master commit in: /
Date: Fri, 28 Mar 2014 18:43:27
Message-Id: 1396032151.e60675e939a9af7719f6a11ebee1223d2f79f83e.radhermit@gentoo
1 commit: e60675e939a9af7719f6a11ebee1223d2f79f83e
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 28 18:42:31 2014 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 28 18:42:31 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=e60675e9
7
8 _portage_utils: fix whitespace
9
10 ---
11 _portage_utils | 187 +++++++++++++++++++++++++++++----------------------------
12 1 file changed, 94 insertions(+), 93 deletions(-)
13
14 diff --git a/_portage_utils b/_portage_utils
15 index 7cd05c1..ead6ca0 100644
16 --- a/_portage_utils
17 +++ b/_portage_utils
18 @@ -4,12 +4,13 @@
19 #
20 local common_args PORTDIR
21 var=PORTDIR
22 +
23 [[ -z ${(P)var} && -r /etc/portage/make.conf ]] &&
24 -local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
25 + local $var="`. /etc/portage/make.conf 2>/dev/null; echo ${(P)var}`"
26 [[ -z ${(P)var} && -r /etc/make.conf ]] &&
27 -local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
28 + local $var="`. /etc/make.conf 2>/dev/null; echo ${(P)var}`"
29 [[ -z ${(P)var} && -r /usr/share/portage/config/make.globals ]] &&
30 -local $var="`. /usr/share/portage/config/make.globals 2>/dev/null; echo ${(P)var}`"
31 + local $var="`. /usr/share/portage/config/make.globals 2>/dev/null; echo ${(P)var}`"
32
33 common_args=(
34 {'(--verbose)-v','(-v)--verbose'}'[Make a lot of noise]' \
35 @@ -18,37 +19,38 @@ common_args=(
36 {'(--help)-h','(-h)--help'}'[Print this help and exit]' \
37 {'(--version)-V','(-V)--version'}'[Print version and exit]' \
38 )
39 +
40 case $service in
41 qcheck)
42 _arguments -s $common_args \
43 - {'(--all)-a','(-a)--all'}'[List all packages]' \
44 - {'(--update)-u','(-u)--update'}'[Update chksum and mtimes for packages]' \
45 - '*:packages:_gentoo_packages installed'
46 + {'(--all)-a','(-a)--all'}'[List all packages]' \
47 + {'(--update)-u','(-u)--update'}'[Update chksum and mtimes for packages]' \
48 + '*:packages:_gentoo_packages installed'
49 ;;
50 qdepends)
51 _arguments -s $common_args \
52 - {'(--depend)-d','(-d)--depend'}'[Show DEPEND info (default)]' \
53 - {'(--rdepend)-r','(-r)--rdepend'}'[Show RDEPEND info]' \
54 - {'(--pdepend)-p','(-p)--pdepend'}'[Show PDEPEND info]' \
55 - {'(--key)-k','(-k)--key'}'[User defined vdb key]' \
56 - {'(--query)-Q','(-Q)--query'}'[Query reverse deps]' \
57 - {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \
58 - {'(--all)-a','(-a)--all'}'[Show all DEPEND info]' \
59 - '*:packages:_gentoo_packages installed'
60 + {'(--depend)-d','(-d)--depend'}'[Show DEPEND info (default)]' \
61 + {'(--rdepend)-r','(-r)--rdepend'}'[Show RDEPEND info]' \
62 + {'(--pdepend)-p','(-p)--pdepend'}'[Show PDEPEND info]' \
63 + {'(--key)-k','(-k)--key'}'[User defined vdb key]' \
64 + {'(--query)-Q','(-Q)--query'}'[Query reverse deps]' \
65 + {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \
66 + {'(--all)-a','(-a)--all'}'[Show all DEPEND info]' \
67 + '*:packages:_gentoo_packages installed'
68 ;;
69 qfile)
70 - _arguments -s $common_args \
71 - {'(--exact)-e','(-e)--exact'}'[Exact match]' \
72 - '*:filename:_files'
73 + _arguments -s $common_args \
74 + {'(--exact)-e','(-e)--exact'}'[Exact match]' \
75 + '*:filename:_files'
76 ;;
77 qgrep)
78 - _arguments -s $common_args \
79 - {'(--invert-match)-I','(-I)--invert-match'}'[Select non-matching lines]' \
80 - {'(--ignore-case)-i','(-i)--ignore-case'}'[Ignore case distinctions]' \
81 - {'(--with-filename)-H','(-H)--with-filename'}'[Print the filename for each match]' \
82 - {'(--count)-c','(-c)--count'}'[Only print a count of matching lines per FILE]' \
83 - {'(--regexp)-e','(-e)--regexp'}'[Use PATTERN as a regular expression]' \
84 - '*:pattern::'
85 + _arguments -s $common_args \
86 + {'(--invert-match)-I','(-I)--invert-match'}'[Select non-matching lines]' \
87 + {'(--ignore-case)-i','(-i)--ignore-case'}'[Ignore case distinctions]' \
88 + {'(--with-filename)-H','(-H)--with-filename'}'[Print the filename for each match]' \
89 + {'(--count)-c','(-c)--count'}'[Only print a count of matching lines per FILE]' \
90 + {'(--regexp)-e','(-e)--regexp'}'[Use PATTERN as a regular expression]' \
91 + '*:pattern::'
92 ;;
93 qcache)
94 local arches allarches arch
95 @@ -58,91 +60,90 @@ qcache)
96 for arch in $arches;do
97 allarches=($allarches $arch)
98 done
99 - _describe -t available-arches "arch" allarches
100 + _describe -t available-arches "arch" allarches
101 }
102 - _arguments -s $common_args \
103 - '*:arch:show_archs'
104 + _arguments -s $common_args \
105 + '*:arch:show_archs'
106 ;;
107 qlist)
108 - _arguments -s $common_args \
109 - {'(--installed)-I','(-I)--installed'}'[Just show installed packages]' \
110 - {'(--slots)-S','(-S)--slots'}'[Display installed packages with slots]' \
111 - {'(--repo)-R','(-R)--repo'}'[Display installed packages with repository]' \
112 - {'(--umap)-U','(-U)--umap'}'[Display installed packages with flags used]' \
113 - {'(--columns)-c','(-c)--columns'}'[Display column view]' \
114 - '--show-debug[Show /usr/lib/debug files]' \
115 - {'(--exact)-e','(-e)--exact'}'[Exact match (only CAT/PN or PN without PV)]' \
116 - {'(--all)-a','(-a)--all'}'[Show every installed package]' \
117 - {'(--dir)-d','(-d)--dir'}'[Only show directories]' \
118 - {'(--obj)-o','(-o)--obj'}'[Only show objects]' \
119 - {'(--sym)-s','(-s)--sym'}'[Only show symlinks]' \
120 - '--root[Set the ROOT env var]:root directory:_files -/' \
121 - '*:packages:_gentoo_packages installed'
122 + _arguments -s $common_args \
123 + {'(--installed)-I','(-I)--installed'}'[Just show installed packages]' \
124 + {'(--slots)-S','(-S)--slots'}'[Display installed packages with slots]' \
125 + {'(--repo)-R','(-R)--repo'}'[Display installed packages with repository]' \
126 + {'(--umap)-U','(-U)--umap'}'[Display installed packages with flags used]' \
127 + {'(--columns)-c','(-c)--columns'}'[Display column view]' \
128 + '--show-debug[Show /usr/lib/debug files]' \
129 + {'(--exact)-e','(-e)--exact'}'[Exact match (only CAT/PN or PN without PV)]' \
130 + {'(--all)-a','(-a)--all'}'[Show every installed package]' \
131 + {'(--dir)-d','(-d)--dir'}'[Only show directories]' \
132 + {'(--obj)-o','(-o)--obj'}'[Only show objects]' \
133 + {'(--sym)-s','(-s)--sym'}'[Only show symlinks]' \
134 + '--root[Set the ROOT env var]:root directory:_files -/' \
135 + '*:packages:_gentoo_packages installed'
136 ;;
137 qlop)
138 - _arguments -s $common_args \
139 - {'(--gauge)-g','(-g)--gauge'}'[Gauge number of times a package has been merged]' \
140 - {'(--time)-t','(-t)--time'}'[Calculate merge time for a specific package]' \
141 - {'(--human)-H','(-H)--human'}'[Print seconds in human readable format (needs -t)]' \
142 - {'(--list)-l','(-l)--list'}'[Show merge history]' \
143 - {'(--unlist)-u','(-u)--unlist'}'[Show unmerge history]' \
144 - {'(--sync)-s','(-s)--sync'}'[Show sync history]' \
145 - {'(--current)-c','(-c)--current'}'[Show current emerging packages]' \
146 - {'(--logfile)-f','(-f)--logfile'}'[Read emerge logfile instead of /var/log/emerge.log]:log:_files' \
147 - '*:packages:_gentoo_packages available'
148 + _arguments -s $common_args \
149 + {'(--gauge)-g','(-g)--gauge'}'[Gauge number of times a package has been merged]' \
150 + {'(--time)-t','(-t)--time'}'[Calculate merge time for a specific package]' \
151 + {'(--human)-H','(-H)--human'}'[Print seconds in human readable format (needs -t)]' \
152 + {'(--list)-l','(-l)--list'}'[Show merge history]' \
153 + {'(--unlist)-u','(-u)--unlist'}'[Show unmerge history]' \
154 + {'(--sync)-s','(-s)--sync'}'[Show sync history]' \
155 + {'(--current)-c','(-c)--current'}'[Show current emerging packages]' \
156 + {'(--logfile)-f','(-f)--logfile'}'[Read emerge logfile instead of /var/log/emerge.log]:log:_files' \
157 + '*:packages:_gentoo_packages available'
158 ;;
159 qsearch)
160 - _arguments -s $common_args \
161 - {'(--all)-a','(-a)--all'}'[List the descriptions of every package in the cache]' \
162 - {'(--cache)-c','(-c)--cache'}'[Use the portage cache]' \
163 - {'(--search)-s','(-s)--search'}'[Regex search package basenames]' \
164 - {'(--desc)-S','(-S)--desc'}'[Regex search package descriptions]' \
165 - {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \
166 - {'(--homepage)-H','(-H)--homepage'}'[Show homepage info]' \
167 - '*:pattern::'
168 + _arguments -s $common_args \
169 + {'(--all)-a','(-a)--all'}'[List the descriptions of every package in the cache]' \
170 + {'(--cache)-c','(-c)--cache'}'[Use the portage cache]' \
171 + {'(--search)-s','(-s)--search'}'[Regex search package basenames]' \
172 + {'(--desc)-S','(-S)--desc'}'[Regex search package descriptions]' \
173 + {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \
174 + {'(--homepage)-H','(-H)--homepage'}'[Show homepage info]' \
175 + '*:pattern::'
176 ;;
177 qsize)
178 - _arguments -s $common_args \
179 - {'(--filesystem)-f','(-f)--filesystem'}'[Show size used on disk]' \
180 - {'(--all)-a','(-a)--all'}'[Size all installed packages]' \
181 - {'(--sum)-s','(-s)--sum'}'[Include a summary]' \
182 - {'(--sum-only)-S','(-S)--sum-only'}'[Show just the summary]' \
183 - {'(--megabyte)-m','(-m)--megabyte'}'[Display size in megabytes]' \
184 - {'(--kilobyte)-k','(-k)--kilobyte'}'[Display size in kilobytes]' \
185 - {'(--byte)-b','(-b)--byte'}'[Display size in bytes]' \
186 - '*:packages:_gentoo_packages installed'
187 + _arguments -s $common_args \
188 + {'(--filesystem)-f','(-f)--filesystem'}'[Show size used on disk]' \
189 + {'(--all)-a','(-a)--all'}'[Size all installed packages]' \
190 + {'(--sum)-s','(-s)--sum'}'[Include a summary]' \
191 + {'(--sum-only)-S','(-S)--sum-only'}'[Show just the summary]' \
192 + {'(--megabyte)-m','(-m)--megabyte'}'[Display size in megabytes]' \
193 + {'(--kilobyte)-k','(-k)--kilobyte'}'[Display size in kilobytes]' \
194 + {'(--byte)-b','(-b)--byte'}'[Display size in bytes]' \
195 + '*:packages:_gentoo_packages installed'
196 ;;
197 quse)
198 - _arguments -s $common_args \
199 - {'(--exact)-e','(-e)--exact'}'[Show exact non regexp matching using strcmp]' \
200 - {'(--all)-a','(-a)--all'}'[Show annoying things in IUSE]' \
201 - {'(--keywords)-K','(-K)--keywords'}'[Use the KEYWORDS vs IUSE]' \
202 - {'(--license)-L','(-L)--license'}'[Use the LICENSE vs IUSE]' \
203 - {'(--describe)-D','(-D)--describe'}'[Describe the USE flag]' \
204 - {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \
205 - '*:use flag:_gentoo_packages useflag'
206 + _arguments -s $common_args \
207 + {'(--exact)-e','(-e)--exact'}'[Show exact non regexp matching using strcmp]' \
208 + {'(--all)-a','(-a)--all'}'[Show annoying things in IUSE]' \
209 + {'(--keywords)-K','(-K)--keywords'}'[Use the KEYWORDS vs IUSE]' \
210 + {'(--license)-L','(-L)--license'}'[Use the LICENSE vs IUSE]' \
211 + {'(--describe)-D','(-D)--describe'}'[Describe the USE flag]' \
212 + {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \
213 + '*:use flag:_gentoo_packages useflag'
214 ;;
215 qtbz2)
216 - _arguments -s $common_args \
217 - {'(--join -s --split -t --tarbz2 -x --xpak)-j','(-t --tarbz2 -j -s --split -x --xpak)--join'}'[Join tar.bz2 + xpak into a tbz2]:*:tar.bz2 file and xpak file:_files -g \*.\(tar.bz2\|xpak\)' \
218 - {'(--join -j --split -t --tarbz2 -x --xpak)-s','(-t --tarbz2 -j --join -s -x --xpak)--split'}'[Split a tbz2 into a tar.bz2 + xpak]:tbz2 file:_files -g \*.tbz2' \
219 - {'(--join -j -s --split --tarbz2 -x --xpak)-t','(--join -j -s --split -t -x --xpak)--tarbz2'}'[Just split the tar.bz2]:tbz2 file:_files -g \*.tbz2' \
220 - {'(--join -j -s --split -t --tarbz2 --xpak)-x','(--join -j -s --split -t --tarbz2 -x)--xpak'}'[Just split the xpak]:tbz2 file:_files -g \*.tbz2' \
221 - {'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]'
222 + _arguments -s $common_args \
223 + {'(--join -s --split -t --tarbz2 -x --xpak)-j','(-t --tarbz2 -j -s --split -x --xpak)--join'}'[Join tar.bz2 + xpak into a tbz2]:*:tar.bz2 file and xpak file:_files -g \*.\(tar.bz2\|xpak\)' \
224 + {'(--join -j --split -t --tarbz2 -x --xpak)-s','(-t --tarbz2 -j --join -s -x --xpak)--split'}'[Split a tbz2 into a tar.bz2 + xpak]:tbz2 file:_files -g \*.tbz2' \
225 + {'(--join -j -s --split --tarbz2 -x --xpak)-t','(--join -j -s --split -t -x --xpak)--tarbz2'}'[Just split the tar.bz2]:tbz2 file:_files -g \*.tbz2' \
226 + {'(--join -j -s --split -t --tarbz2 --xpak)-x','(--join -j -s --split -t --tarbz2 -x)--xpak'}'[Just split the xpak]:tbz2 file:_files -g \*.tbz2' \
227 + {'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]'
228 ;;
229 qpkg)
230 - _arguments -s $common_args \
231 - {'(--pretend)-p','(-p)--pretend'}'[pretend only]' \
232 - {'(--pkgdir)-P','(-P)--pkgdir'}'[alternate package directory]:alternate pkgdir:_files -/' \
233 - '*:Installed packages:_gentoo_packages installed_versions'
234 + _arguments -s $common_args \
235 + {'(--pretend)-p','(-p)--pretend'}'[pretend only]' \
236 + {'(--pkgdir)-P','(-P)--pkgdir'}'[alternate package directory]:alternate pkgdir:_files -/' \
237 + '*:Installed packages:_gentoo_packages installed_versions'
238 ;;
239 qxpak)
240 - _arguments -s $common_args \
241 - {'(--list --extract -x --create -c)-l','(-l --extract -x --create -c)--list'}'[List the contents of an archive]:xpak archive:_files -g \*.xpak' \
242 - {'(--list -l --extract --create -c)-x','(--list -l -x --create -c)--extract'}'[Extract the contents of an archive]:xpak archive:_files -g \*.xpak' \
243 - {'(--list -l --extract -x --create)-c','(--list -l --extract -x -c)--create'}'[Create an archive of a directory/files]:*:archive name and files to archive:_files' \
244 - {'(--dir)-d','(-d)--dir'}'[Change to specified directory]:directory:_files -/' \
245 - {'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]'
246 -
247 + _arguments -s $common_args \
248 + {'(--list --extract -x --create -c)-l','(-l --extract -x --create -c)--list'}'[List the contents of an archive]:xpak archive:_files -g \*.xpak' \
249 + {'(--list -l --extract --create -c)-x','(--list -l -x --create -c)--extract'}'[Extract the contents of an archive]:xpak archive:_files -g \*.xpak' \
250 + {'(--list -l --extract -x --create)-c','(--list -l --extract -x -c)--create'}'[Create an archive of a directory/files]:*:archive name and files to archive:_files' \
251 + {'(--dir)-d','(-d)--dir'}'[Change to specified directory]:directory:_files -/' \
252 + {'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]'
253 ;;
254 esac