]> git.donarmstrong.com Git - deb_pkgs/scowl.git/blob - debian/wamerican.config
Add analyses (plural of analysis) (Closes: #570718). Thanks to Benoit
[deb_pkgs/scowl.git] / debian / wamerican.config
1 #!/usr/bin/perl -w
2 use Debconf::Client::ConfModule q(:all);
3
4 version ('2.0');
5
6 my $class          = "wordlist";
7 my $script         = "/usr/share/dictionaries-common/dc-debconf-select.pl";
8 my $has_elanguages = "/usr/share/dictionaries-common/elanguages";
9
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.
14 #
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.
19
20 if ( -e $script && -e $has_elanguages ){
21     require $script;
22     dc_debconf_select($class);
23 }