1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-11 08:21:13 +01:00

17244: don't complete udebs for dpkg -i or --unpack

This commit is contained in:
Clint Adams 2002-05-28 14:07:35 +00:00
parent b36344b6ba
commit f486cc9ce9
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2002-05-28 Clint Adams <clint@zsh.org>
* 17244: Completion/Debian/Command/_dpkg:
don't complete udebs for --unpack or -i.
2002-05-27 Sven Wischnowsky <wischnow@zsh.org> 2002-05-27 Sven Wischnowsky <wischnow@zsh.org>
* 17237: Src/Zle/complist.c: follow-up to 17222, make the * 17237: Src/Zle/complist.c: follow-up to 17222, make the

View file

@ -24,7 +24,7 @@ _dpkg_common_actions=(
_dpkg_actions=( _dpkg_actions=(
'(--install -i)'{--install,-i}'[install packages]:*:Debian packages:->install' '(--install -i)'{--install,-i}'[install packages]:*:Debian packages:->install'
'--unpack[unpack package]:Debian package:_files -g \*.u\#deb' '--unpack[unpack package]:Debian package:_files -g \*.deb'
'--configure[reconfigure specified packages]:*:package:->configure' '--configure[reconfigure specified packages]:*:package:->configure'
'(--remove -r)'{--remove,-r}'[remove package]:*:package:->remove' '(--remove -r)'{--remove,-r}'[remove package]:*:package:->remove'
'(--purge -P)'{--purge,-P}'[purge package]:*:package:->purge' '(--purge -P)'{--purge,-P}'[purge package]:*:package:->purge'
@ -101,7 +101,7 @@ case "$state" in
"$_dpkg_options_recursive[@]" \ "$_dpkg_options_recursive[@]" \
'*:directory:_path_files -/' \ '*:directory:_path_files -/' \
- nonrecur \ - nonrecur \
'*:Debian package:_path_files -g \*.u\#deb' '*:Debian package:_path_files -g \*.deb'
;; ;;
remove|purge|status|listfiles) remove|purge|status|listfiles)
_call_function ret _dpkg_$state && return ret _call_function ret _dpkg_$state && return ret