1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

24323: for performance reasons, procure release names via apt-cache policy instead of apt-cache dump.

This commit is contained in:
Clint Adams 2007-12-28 02:35:41 +00:00
parent 3a6b74f4b0
commit 9e8f2329d6
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-12-27 Clint Adams <clint@zsh.org>
* 24323: Completion/Debian/Command/_apt: for performance reasons,
procure release names via apt-cache policy instead of apt-cache
dump.
2007-12-27 Wayne Davison <wayned@users.sourceforge.net>
* unposted: Src/params.c: silenced a compiler warning by making

View file

@ -551,7 +551,7 @@ _apt_releases_update () {
_cache_invalid APT_releases ) && ! _retrieve_cache APT_releases;
then
_apt_releases=(
${${${${(M)${(f)"$(apt-cache dump)"}:# #Archive:*}# #Archive: #}:#*\(null\)*}/ /}
${${${${(M)${(f)"$(apt-cache policy)"}:#*release*}#*a=}%%,*}:#now}
)
typeset -U _apt_releases
_store_cache APT_releases _apt_releases