Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug triage
- X-seq: zsh-workers 26201
- From: Clint Adams <clint@xxxxxxx>
- To: Matt Wozniski <godlygeek@xxxxxxxxx>
- Subject: Re: Bug triage
- Date: Tue, 30 Dec 2008 04:55:14 +0000
- Cc: Richard Hartmann <richih.mailinglist@xxxxxxxxx>, 381842@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- In-reply-to: <17393e3e0812291540u366992a2l4ef42fee6341a0bf@xxxxxxxxxxxxxx>
- Mail-followup-to: Matt Wozniski <godlygeek@xxxxxxxxx>, Richard Hartmann <richih.mailinglist@xxxxxxxxx>, 381842@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70812291311s3fe60715of556b785037f3bb1@xxxxxxxxxxxxxx> <20081229233506.GM17090@xxxxxxxxxxxxxxxxxxx> <17393e3e0812291540u366992a2l4ef42fee6341a0bf@xxxxxxxxxxxxxx>
On Mon, Dec 29, 2008 at 06:40:33PM -0500, Matt Wozniski wrote:
> Seems that not defining the variable when the function that defined it
> was interrupted would be best, if it's not too tough to implement.
> Regarding an empty variable as invalid is still better than allowing
> an empty variable, but depending on the code (which I haven't looked
> at) it might be able to create a variable holding only part of a valid
> cache.
>
> Just something to think about.
I don't know. How about
Index: Completion/Debian/Type/_deb_packages
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Type/_deb_packages,v
retrieving revision 1.8
diff -u -r1.8 _deb_packages
--- Completion/Debian/Type/_deb_packages 2 Nov 2008 14:12:29 -0000 1.8
+++ Completion/Debian/Type/_deb_packages 30 Dec 2008 04:54:18 -0000
@@ -6,9 +6,11 @@
if ( [[ ${+_deb_packages_cache_avail} -eq 0 ]] ||
_cache_invalid DEBS_avail ) && ! _retrieve_cache DEBS_avail;
then
- _deb_packages_cache_avail=(
+ if _deb_packages_cache_avail=(
${(f)"$(apt-cache --generate pkgnames 2>/dev/null)"}
- )
+ ); then
+ unset _deb_packages_cache_avail
+ fi
_store_cache DEBS_avail _deb_packages_cache_avail
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author