4
4
my $priority = shift;
5
5
my $question = "shared/packages-$class";
7
$priority = "critical" if not $priority;
9
$priority = "medium" if not $priority;
9
11
if ( $class eq "ispell" ){
10
12
$title = "Dictionaries-common: Ispell dictionary";
15
17
my ($errorcode,$pkgowners) = metaget ($question, "owners");
16
18
return if $errorcode;
19
20
foreach (split (/\s*,\s*/, $pkgowners)){
20
21
my $entry = metaget ("$_/languages", "default");
21
22
for ( $entry ){ # trim leading/trailing whitespaces the perlfaq way
25
push (@choices, split(/\s*,\s*/, $entry));
26
push (@newchoices, split(/\s*,\s*/, $entry));
27
my $choices = join (', ', sort {lc $a cmp lc $b} @choices);
28
my $choices = join (', ', sort {lc $a cmp lc $b} @newchoices);
29
30
$question = "dictionaries-common/default-$class";
30
if ($choices ne metaget ($question, "choices")) {
31
@oldchoices = split(/\s*,\s*/,metaget ($question, "choices"));
33
my $oldchoices = join (', ', @oldchoices);
34
# print STDERR "**\nnew:$choices\nold:$oldchoices\n";
35
if ( $choices ne $oldchoices ) {
31
36
subst ($question, "choices", $choices);
32
37
fset ($question, "seen", "false");