Fix completion test for dpgk -L

This commit is contained in:
Freddy Vulto 2009-09-12 22:31:10 +02:00
parent 0e1e189f0b
commit 4467ce1725

View File

@ -18,10 +18,7 @@ sync_after_int
# Build list of installed packages # Build list of installed packages
# NOTE: If an argument is passed to `--get-selections', `dpkg' also returns if {[assert_exec {dpkg --get-selections | grep \[\[:space:\]\]install$ | cut -f1} packages]} {
# 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]} {
assert_complete $packages "dpkg -L " assert_complete $packages "dpkg -L "
}; # if }; # if