summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Debian/Command/_apt2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f271ba421..cb4dba74d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-12-30  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 42186: Completion/Debian/Command/_apt: Fix completion of
+	target_release names, e.g., 'apt install zsh/<TAB>'.
+
 	* unposted: Functions/VCS_Info/VCS_INFO_formats,
 	Functions/VCS_Info/VCS_INFO_set: vcs_info: Add docstrings to
 	the internal functions VCS_INFO_formats and VCS_INFO_set.
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