Try to install/test arch completion only for the mailman one, not coreutils/util-linux-ng.

This commit is contained in:
Ville Skyttä 2009-11-23 00:29:16 +02:00
parent 4230265870
commit ef025a78ab
2 changed files with 4 additions and 2 deletions

View File

@ -378,7 +378,9 @@ _config_list()
} &&
complete -F _config_list -o filenames config_list
have arch &&
# Try to detect whether this is the mailman "arch" to avoid installing
# it for the coreutils/util-linux-ng one.
have arch && have mailmanctl &&
_arch()
{
local cur prev split=false

View File

@ -1,3 +1,3 @@
if {[assert_bash_type {arch}]} {
if {[assert_bash_type {arch}] && [assert_bash_type {mailmanctl}]} {
source "lib/completions/arch.exp"
}; # if