Instead of writing `}; # if', write just `}' as was discussed here: http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01815.html
30 lines
353 B
Plaintext
30 lines
353 B
Plaintext
proc setup {} {
|
|
save_env
|
|
}
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified
|
|
}
|
|
|
|
|
|
setup
|
|
|
|
|
|
assert_complete_any "dpkg --c"
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
# Build list of installed packages
|
|
if {[assert_exec {dpkg --get-selections | command grep \[\[:space:\]\]install$ | cut -f1} packages]} {
|
|
assert_complete $packages "dpkg -L "
|
|
}
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
teardown
|