diff options
author | Clint Adams <clint@users.sourceforge.net> | 2007-12-28 02:35:41 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2007-12-28 02:35:41 +0000 |
commit | 9e8f2329d6f22698db916e028083f7b47a7b024a (patch) | |
tree | 4eb8678ef0e2b77f2ff07a920afcc5d8284667e0 /Completion/Debian/Command/_apt | |
parent | 3a6b74f4b0d5d5b1cfa7e6fb4fcc946a1ae16d66 (diff) | |
download | zsh-9e8f2329d6f22698db916e028083f7b47a7b024a.tar.gz zsh-9e8f2329d6f22698db916e028083f7b47a7b024a.tar.xz zsh-9e8f2329d6f22698db916e028083f7b47a7b024a.zip |
24323: for performance reasons, procure release names via apt-cache policy instead of apt-cache dump.
Diffstat (limited to 'Completion/Debian/Command/_apt')
-rw-r--r-- | Completion/Debian/Command/_apt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt index d65015774..c22e42ecb 100644 --- a/Completion/Debian/Command/_apt +++ b/Completion/Debian/Command/_apt @@ -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 |