about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Debian/Type/_deb_packages2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b31cf24f..eb67ec1cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-06  Clint Adams  <clint@zsh.org>
+
+	* 23666: Completion/Debian/Type/_deb_packages:
+	redirect stderr from apt-cache --generate pkgnames to
+	/dev/null.
+
 2007-07-06  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 23665: Doc/Zsh/builtins.yo,
diff --git a/Completion/Debian/Type/_deb_packages b/Completion/Debian/Type/_deb_packages
index 090c9c6b6..8ddf0e959 100644
--- a/Completion/Debian/Type/_deb_packages
+++ b/Completion/Debian/Type/_deb_packages
@@ -7,7 +7,7 @@ _deb_packages_update_avail () {
       _cache_invalid DEBS_avail ) && ! _retrieve_cache DEBS_avail;
   then
     _deb_packages_cache_avail=(
-      ${(f)"$(apt-cache --generate pkgnames)"}
+      ${(f)"$(apt-cache --generate pkgnames 2>/dev/null)"}
     )
 
     _store_cache DEBS_avail _deb_packages_cache_avail