1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

* Jesse Weinstein: 21230 (reformatted as 21231):

Completion/Debian/Command/_dpkg: complete -W/--show for dpkg-deb.
This commit is contained in:
Clint Adams 2005-05-05 22:30:34 +00:00
parent 5ade42c05e
commit 3f8eca3e2d
2 changed files with 12 additions and 0 deletions

@ -1,3 +1,9 @@
2005-05-05 Clint Adams <clint@zsh.org>
* Jesse Weinstein: 21230 (reformatted as 21231):
Completion/Debian/Command/_dpkg: complete -W/--show
for dpkg-deb.
2005-04-30 Bart Schaefer <schaefer@zsh.org> 2005-04-30 Bart Schaefer <schaefer@zsh.org>
* 21215: Test/C03traps.ztst: clean up TRAPEXIT file left behind by * 21215: Test/C03traps.ztst: clean up TRAPEXIT file left behind by

@ -2,9 +2,14 @@
local _dpkg_deb_actions _dpkg_common_actions _dpkg_actions _dpkg_options local _dpkg_deb_actions _dpkg_common_actions _dpkg_actions _dpkg_options
local _dpkg_options_recursive _dpkg_actions_install _dpkg_actions_record_avail local _dpkg_options_recursive _dpkg_actions_install _dpkg_actions_record_avail
local _dpkg_deb_only_actions
local curcontext="$curcontext" context state line expl ret local curcontext="$curcontext" context state line expl ret
typeset -A opt_args typeset -A opt_args
_dpkg_deb_only_actions=(
'(--show -W)'{--show,-W}'[show package info]:Debian package:_files -g \*.u\#deb'
)
_dpkg_deb_actions=( _dpkg_deb_actions=(
'(--build -b)'{--build,-b}'[build archive]:directory:_files -/' '(--build -b)'{--build,-b}'[build archive]:directory:_files -/'
'(--contents -c)'{--contents,-c}'[list contents]:Debian package:_files -g "*.u#deb(-.)"' '(--contents -c)'{--contents,-c}'[list contents]:Debian package:_files -g "*.u#deb(-.)"'
@ -84,6 +89,7 @@ case "$service" in
dpkg-deb) dpkg-deb)
_arguments "$_dpkg_deb_actions[@]" \ _arguments "$_dpkg_deb_actions[@]" \
"$_dpkg_deb_only_actions[@]" \
"$_dpkg_common_actions[@]" && return 0 "$_dpkg_common_actions[@]" && return 0
;; ;;
dpkg-reconfigure) dpkg-reconfigure)