commit: 210cbb7c3cf71e2d7da85c4e167ce2bdd265da3a
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 20 02:12:28 2014 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Dec 20 02:13:45 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=210cbb7c
_portage: add optional arguments for quickpkg
---
src/_portage | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/src/_portage b/src/_portage
index e9639d8..efa3c0e 100644
--- a/src/_portage
+++ b/src/_portage
@@ -41,16 +41,27 @@ _ebuild () {
}
-# Stuff for quickpkg
-
_quickpkg () {
+ local optional_args
+
+ optional_args=(
+ "(: -)"{-h,--help}'[show this help message and exit]'
+ "--umask[umask used during package creation (default is 0077)]:umask
(octal)"
+ "--ignore-default-opts[do not use the QUICKPKG_DEFAULT_OPTS environment
variable]"
+ "--include-config[include all files protected by CONFIG_PROTECT (as a
security precaution, default is 'n')]:y or n:((y n))"
+ "--include-unmodified-config[include files protected by CONFIG_PROTECT
that have not been modified since installation (as a security precaution,
default is 'n')]:y or n:((y n))"
+ )
+
if compset -P '(\\|)(>=|<=|<|>|=)'; then
- _arguments -s \
- '*:installed package:_gentoo_packages installed_versions'
+ _arguments -s \
+ "$optional_args[@]" \
+ '*:installed package:_gentoo_packages installed_versions'
elif compset -P '(\\|)[/]'; then
_path_files -W / -/
else
- _arguments '*:installed package:_gentoo_packages installed'
+ _arguments \
+ "$optional_args[@]" \
+ '*:installed package:_gentoo_packages installed'
fi
}