commit: 9eee6ffef4e01324e975ced9e124634d0ce2c7e9
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 27 07:21:26 2014 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Thu Nov 27 07:21:26 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=9eee6ffe
_portage: allow --depclean to take installed pkg arguments
---
src/_portage | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/_portage b/src/_portage
index 784a8e8..98410d3 100644
--- a/src/_portage
+++ b/src/_portage
@@ -167,7 +167,7 @@ _emerge () {
"($bopts)"{-k,--usepkg}"[Tells emerge to use binary packages if available]"
"($bopts --changelog -l)"{-K,--usepkgonly}"[Tells emerge to use binary
packages only]"
"($all)--clean[Cleans the system by removing packages]"
- "(: $all)"{-c,--depclean}"[Clean all packages that have no reason for
being installed (see man!!!)]"
+ "($all)"{-c,--depclean}"[Clean selected packages/all packages that have no
reason for being installed (see man!!!)]"
"(: $all $noask_opts --nospinner --quiet -q)--info[This is a list of
information to include in bug reports]"
"(: -)--metadata[Generate metadata]"
"($nopkg_opts --usepkgonly -K)--newuse[Include installed packages which
have changed USE flags]"
@@ -189,7 +189,7 @@ _emerge () {
# Dispatch
- if ((
$words[(I)(--(unmerge|clean|prune|deselect)|-[[:alpha:]]#(C|c|P)[[:alpha:]]#)]
)) ; then
+ if ((
$words[(I)(--(unmerge|(dep|)clean|prune|deselect)|-[[:alpha:]]#(C|c|P)[[:alpha:]]#)]
)) ; then
if compset -P '(\\|)(>=|<=|<|>|=)'; then
_arguments -s \
'*:installed package:_gentoo_packages installed_versions' &&
return 0