Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _apt: Fix completion of target_release names, e.g., 'apt install zsh/<TAB>'.
- X-seq: zsh-workers 42186
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _apt: Fix completion of target_release names, e.g., 'apt install zsh/<TAB>'.
- Date: Sat, 30 Dec 2017 06:13:21 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=TSeMQb6Daot4EncsC GW9ZdtyNvyI0XKGWeWeeqcTREI=; b=GkJBnUPYa9tzrxW3DYnJhck/l5ChLUrM1 Rk8Bm0CfINnyS7BflKBzdMrxtUOOmvEfGZ7l3R+xin7klSUUIRqGoohZVwst040w fP2/Htj8R2QolGlBXS4w1SKMXp//Qla0Hw7gfRLxKDU44wcNOOx9kx+EIAN1d4e4 xzmzfA1fqC2PGc4YsH/ZmWy6QimYwyYlG1QBNQ6wsNf+8InBlKAT/KSUUWIw7xJ1 gGHBbIqTrvyvzY5TCSyt8SreZOL5XeFpKUOzJ0SCcFrWXOGK+NnlD12/Ji9gE10L Ph4X6qfcdaIo2+A4MDzMEjtQ3SwIIbCPKx9go5z41/45y18ErMmvg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=TSeMQb6Daot4EncsC GW9ZdtyNvyI0XKGWeWeeqcTREI=; b=QO9UdAk2F/dkTkS3mf6LBLdfnoWBER5DJ MOTE0yXbzQDPSXwfSCWkNr4T82uWsAaJT8vEsEnVr9PPKZjie2iXa/z8q0rj0QK9 VmqBFATDK/tRso6xbx9fgho66eCA1ZmugyOPQt5IS1MdoQiBiEqwnyCq5iSMC3Hz +3qE2ilQksZfWh7ngYWie/3a89IiBIKsoBMUS/IEjcWYMum8E9iM5sIDBjzJART1 zMDb2YSq/y6T3x9pO3jwYNeXCRRDvfoQIaAuqgq0zlSzSvtPdwuTbafAF1DfGrvZ bMlDjD5qzZf6bKZ+FIB28Nr6/RN9mL2+tIpbh/+sCZItYikJRx1AQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
When local-apt-repository is installed, 'apt-cache policy' contains
.
100 /var/lib/dpkg/status
release a=now
500 file:/var/lib/local-apt-repository ./ Packages
release o=local-apt-repository,c=
.
which was matched by the pattern being patched.
---
Completion/Debian/Command/_apt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt
index 074fb0164..aabe03d3c 100644
--- a/Completion/Debian/Command/_apt
+++ b/Completion/Debian/Command/_apt
@@ -609,7 +609,7 @@ _apt_releases_update () {
then
local -a tmp=("${(f)$(apt-cache policy)}")
_apt_releases=(
-${${${${(M)tmp:#*release*}#*a=}%%,*}:#now}
+${${${${(M)tmp:#*release*a=*}#*a=}%%,*}:#now}
${${${${(M)tmp:#*release*n=*}#*n=}%%,*}:#now}
)
typeset -U _apt_releases
Messages sorted by:
Reverse Date,
Date,
Thread,
Author