2 use Debconf::Client::ConfModule q(:all);
6 my $class = "wordlist";
7 my $script = "/usr/share/dictionaries-common/dc-debconf-select.pl";
8 my $has_elanguages = "/usr/share/dictionaries-common/elanguages";
10 # This is not a standard dictionaries-common.config. Since dictionaries-common
11 # will eventually become an optional package, we need to make sure that
12 # wamerican does not run common config code unless a recent (e.g., with
13 # elanguages support) dictionaries-common is installed.
15 # This is not a problem when the whole system is installed from scratch, but
16 # can be when dictionaries-common and wamerican are upgraded together from
17 # previous non elanguages dictionaries-common version. In such case $script
18 # is present, so we need an extra check on $has_elanguages.
20 if ( -e $script && -e $has_elanguages ){
22 dc_debconf_select($class);