[Bash-completion-commits] ./current r1255: Fix dpkg completion bug: it listed only non-Essential packages

David Paleino d.paleino at gmail.com
Fri Jan 16 20:22:26 UTC 2009


------------------------------------------------------------
revno: 1255
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Fri 2009-01-16 21:22:26 +0100
message:
  Fix dpkg completion bug: it listed only non-Essential packages
  (Closes: #511790)
modified:
  bash_completion
  debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion	2009-01-14 22:38:07 +0000
+++ b/bash_completion	2009-01-16 20:22:26 +0000
@@ -4311,8 +4311,9 @@
 _comp_dpkg_installed_packages()
 {
 	grep -A 1 "Package: $1" /var/lib/dpkg/status | \
-		grep -B 1 -E "ok installed|half-installed|unpacked| \
-					half-configured|config-files" | \
+		grep -B 1 -Ee "ok installed|half-installed|unpacked| \
+					half-configured|config-files" \
+				  -Ee "^Essential: yes" | \
 		grep "Package: $1" | cut -d\  -f2
 }
 #}

=== modified file 'debian/changelog'
--- a/debian/changelog	2009-01-16 20:01:13 +0000
+++ b/debian/changelog	2009-01-16 20:22:26 +0000
@@ -51,6 +51,8 @@
     (prefixed with _ to avoid file conflicts with upstream's one)
   * Fixed completion of environment variables, thanks to Morita Sho
     (Closes: #272660)
+  * Fix dpkg completion bug: it listed only non-Essential packages
+    (Closes: #511790)
   * Merge from Gentoo:
     - fix 'find' completion so that it properly completes on -?(i)whilename.
       Patch by Ciaran McCreesh.
@@ -93,7 +95,7 @@
   * Add .mkv, .mp2 and .vdr to *xine completion (RHBZ: #444467) (Ville Skytt?).
   * Add --rsyncable to gzip completion (Ville Skytt?).
   
- -- David Paleino <d.paleino at gmail.com>  Fri, 16 Jan 2009 21:00:36 +0100
+ -- David Paleino <d.paleino at gmail.com>  Fri, 16 Jan 2009 21:21:06 +0100
 
 bash-completion (20080705) unstable; urgency=low
 



More information about the Bash-completion-commits mailing list