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

13866: apt-get install pinning

This commit is contained in:
Clint Adams 2001-04-02 05:37:27 +00:00
parent a179c37a5e
commit 9475938761
2 changed files with 7 additions and 2 deletions

@ -1,5 +1,8 @@
2001-04-02 Clint Adams <schizo@debian.org>
* 13866: Completion/Debian/_apt: complete a release
name after apt-get install <pkgname>/.
* 13864: Completion/Debian/_apt: complete a
"release" name after apt-get -t.

@ -414,7 +414,9 @@ _apt-get () {
-- \
/$'update\0'/ \| \
/$'upgrade\0'/ \| \
/$'install\0'/ /$'[^\0]#\0'/ ':packages::{ _deb_packages "$expl_packages[@]" uninstalled || _deb_packages "$expl_packages[@]" installed }' \# \| \
\( \
/$'install\0'/ /$'[^\0]#\0'/ ':packages::{ _deb_packages "$expl_packages[@]" uninstalled || _deb_packages "$expl_packages[@]" installed }' \# \
/$'[^\0/]#/'/ /$'[^\0/]#\0'/ ':release name::_apt_releases' \) \| \
/$'remove\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
/$'dist-upgrade\0'/ \| \
/$'dselect-upgrade\0'/ \| \
@ -535,7 +537,7 @@ ${${${${(M)${(f)"$(apt-cache dump)"}:# #Archive:*}# #Archive: #}:#*\(null\)*}/ /
}
_apt_releases () {
local command="$argv[$#]" update_policy
local update_policy
zstyle -s ":completion:*:*:$service:*" cache-policy update_policy
if [[ -z "$update_policy" ]]; then