The following commit has been merged in the master branch:
commit 4467ce17250b4ef2fe189dd748eb1f19348be43f
Author: Freddy Vulto <[email protected]>
Date:   Sat Sep 12 22:31:10 2009 +0200

    Fix completion test for dpgk -L

diff --git a/test/lib/completions/dpkg.exp b/test/lib/completions/dpkg.exp
index ff4c527..9e01882 100644
--- a/test/lib/completions/dpkg.exp
+++ b/test/lib/completions/dpkg.exp
@@ -18,10 +18,7 @@ sync_after_int
 
 
     # Build list of installed packages
-    # NOTE: If an argument is passed to `--get-selections', `dpkg' also returns
-    #       packages with status "purged".  Be sure to add `| grep install$' to
-    #       pipeline before 'cut' in that case. -- FVu, Sun Feb 22 10:08:34 
CET 2009
-if {[assert_exec {dpkg --get-selections | cut -f1} packages]} {
+if {[assert_exec {dpkg --get-selections | grep \[\[:space:\]\]install$ | cut 
-f1} packages]} {
     assert_complete $packages "dpkg -L "
 }; # if
 

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to