about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-30 01:21:33 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-30 01:21:33 +0000
commitb757849548f23f5e5f163496a0f667f5c5402b8c (patch)
tree2427e2b45b6779e37b818ea56b93338cfa79632f
parentc9a4d1c4de3307af86d8fd24733c376109b7187f (diff)
downloadzsh-b757849548f23f5e5f163496a0f667f5c5402b8c.tar.gz
zsh-b757849548f23f5e5f163496a0f667f5c5402b8c.tar.xz
zsh-b757849548f23f5e5f163496a0f667f5c5402b8c.zip
zsh-workers/9470
-rw-r--r--Completion/Debian/_deb_packages14
1 files changed, 7 insertions, 7 deletions
diff --git a/Completion/Debian/_deb_packages b/Completion/Debian/_deb_packages
index 29b37ea48..9df52eab6 100644
--- a/Completion/Debian/_deb_packages
+++ b/Completion/Debian/_deb_packages
@@ -2,7 +2,7 @@
 
 # Usage: _deb_packages expl... avail|installed|uninstalled
 
-_deb_packages_updage_avail () {
+_deb_packages_update_avail () {
   if (( ! $+_deb_packages_cache_uninstalled )); then
     _deb_packages_cache_avail=(
       ${(f)"$(apt-cache dumpavail | awk '/^Package:/ { print $2 }')"}
@@ -11,7 +11,7 @@ _deb_packages_updage_avail () {
   cachevar=_deb_packages_cache_avail
 }
 
-_deb_packages_updage_installed () {
+_deb_packages_update_installed () {
   if (( ! $+_deb_packages_cache_installed )); then
     _deb_packages_cache_installed=(
       ${${${(f)"$(dpkg --get-selections)"}:#*deinstall}%%	*}
@@ -20,9 +20,9 @@ _deb_packages_updage_installed () {
   cachevar=_deb_packages_cache_installed
 }
 
-_deb_packages_updage_uninstalled () {
-  _deb_packages_updage_avail
-  _deb_packages_updage_installed
+_deb_packages_update_uninstalled () {
+  _deb_packages_update_avail
+  _deb_packages_update_installed
   if (( ! $+_deb_packages_cache_uninstalled )); then
     _deb_packages_cache_uninstalled=(
       ${_deb_packages_cache_avail:#${(j:|:)~${_deb_packages_cache_installed:q}}}
@@ -49,9 +49,9 @@ _deb_packages () {
 
   expl=("${(@)argv[1,-2]}")
 
-  _deb_packages_updage_$pkgset
+  _deb_packages_update_$pkgset
 
-  _tags packages && compadd "$expl[@]" - "${(e):-"\${(@)$cachevar}"}"
+  _tags packages && compadd "$expl[@]" - "${(@P)cachevar}"
 }
 
 _deb_packages "$@"