diff --git a/test/lib/completions/dpkg.exp b/test/lib/completions/dpkg.exp index ff4c5274..9e01882b 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