[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 8eaf5a1c2a922240445f57ba7e525217aa661a3e

Freddy Vulto fvulto at gmail.com
Sun Sep 13 19:30:18 UTC 2009


The following commit has been merged in the master branch:
commit 4467ce17250b4ef2fe189dd748eb1f19348be43f
Author: Freddy Vulto <fvulto at gmail.com>
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



More information about the Bash-completion-commits mailing list