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

14533: -> to = -> for dpkg and update-alternatives

This commit is contained in:
Clint Adams 2001-05-29 12:39:31 +00:00
parent 4a7abbfdd6
commit 572bd64e32
3 changed files with 14 additions and 7 deletions

@ -1,3 +1,10 @@
2001-05-29 Clint Adams <clint@zsh.org>
* 14533: Completion/Debian/Command/_dpkg,
Completion/Debian/Command/_update-alternatives:
use "= ->" for states expecting positional
parameters.
2001-05-29 Sven Wischnowsky <wischnow@zsh.org>
* 14530: Completion/compinit,

@ -58,7 +58,7 @@ _dpkg_actions=('(--install)-i[install packages]:*:Debian packages:->install' \
'--print-architecture[print target architecture]' \
'--print-gnu-build-architecture[print GNU version of target architecture]' \
'--print-installation-architecture[print host architecture]' \
'--compare-versions[compare version numbers]:*:expression:->compare_versions')
'--compare-versions[compare version numbers]:*::expression:= ->compare_versions')
_dpkg_options=('--abort-after[abort after errors]:number of errors:' \
'--admindir=[data directory]:directory:_files -/' \

@ -10,11 +10,11 @@ _arguments -C '--verbose' \
'--version' \
'--altdir:altdir:_files -/' \
'--admindir:admindir:_files -/' \
'--install:*::alt:->install' \
'--remove:*::alt:->remove' \
'--auto:altname:_files -W /var/lib/dpkg/alternatives' \
'--display:altname:_files -W /var/lib/dpkg/alternatives' \
'--config:altname:_files -W /var/lib/dpkg/alternatives' && return 0
'--install:*::alt:= ->install' \
'--remove:*::alt:= ->remove' \
'--auto:name:_files -W /var/lib/dpkg/alternatives' \
'--display:name:_files -W /var/lib/dpkg/alternatives' \
'--config:name:_files -W /var/lib/dpkg/alternatives' && return 0
_call_function ret _update_alternatives_$state && return ret
case "$state" in
@ -34,7 +34,7 @@ case "$state" in
remove)
_arguments \
'1:altname:_files -W /var/lib/dpkg/alternatives' \
'1:name:_files -W /var/lib/dpkg/alternatives' \
'2:path:_files'
;;