Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: stylistic override to _deb_packages
- X-seq: zsh-workers 9470
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: stylistic override to _deb_packages
- Date: 30 Jan 2000 10:20:54 +0900
- In-reply-to: Clint Adams's message of "Sat, 29 Jan 2000 17:37:22 -0500"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000129173722.A13963@xxxxxxxxxxx>
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