summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Debian/Command/_apt2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 048b355b8..6e1f6d1a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-12  Clint Adams  <clint@zsh.org>
+
+	* 38482: Completion/Debian/Command/_apt: complete available packages
+	for apt list.
+
 2016-05-10  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 38468: Src/lex.c: wb,we values in gotword() needed assignment in
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt
index 8e74e661f..a46c3264a 100644
--- a/Completion/Debian/Command/_apt
+++ b/Completion/Debian/Command/_apt
@@ -399,7 +399,7 @@ _apt-cmd () {
     -o,--option:arbitem \
     -t,--target-release:release \
     -- \
-    /$'list\0'/ \| \
+    /$'list\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
     /$'search\0'/ /$'[^\0]#\0'/ ':strings:pattern:' \| \
     /$'show\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
     /$'update\0'/ \| \