Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: stylistic override to _deb_packages



In article <20000129173722.A13963@xxxxxxxxxxx>,
  Clint Adams <schizo@xxxxxxxxxx> writes:

> -  _deb_packages_updage_$command
> +  _deb_packages_updage_$pkgset

Oops.  `updage' is my typo.

Index: Completion/Debian/_deb_packages
===================================================================
RCS file: /projects/zsh/zsh/Completion/Debian/_deb_packages,v
retrieving revision 1.1.1.6
diff -u -r1.1.1.6 _deb_packages
--- Completion/Debian/_deb_packages	2000/01/30 00:59:22	1.1.1.6
+++ Completion/Debian/_deb_packages	2000/01/30 01:17:37
@@ -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 @@
   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 @@
   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 @@
 
   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 "$@"
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author