summary refs log tree commit diff
path: root/Completion/Debian
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-04-02 05:37:27 +0000
committerClint Adams <clint@users.sourceforge.net>2001-04-02 05:37:27 +0000
commit9475938761151c0187f40ee36e3e385c6613e1a4 (patch)
tree544dc2f28e60b78d838c84df2e72620a55163182 /Completion/Debian
parenta179c37a5e389f9c6c5bead41dac9c6d52f36cfe (diff)
downloadzsh-9475938761151c0187f40ee36e3e385c6613e1a4.tar.gz
zsh-9475938761151c0187f40ee36e3e385c6613e1a4.tar.xz
zsh-9475938761151c0187f40ee36e3e385c6613e1a4.zip
13866: apt-get install pinning
Diffstat (limited to 'Completion/Debian')
-rw-r--r--Completion/Debian/_apt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Debian/_apt b/Completion/Debian/_apt
index d2dda2e7a..ba9b20579 100644
--- a/Completion/Debian/_apt
+++ b/Completion/Debian/_apt
@@ -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