diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MGA/Advisories.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index 8c8bab2..fed9caa 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -60,6 +60,8 @@ sub get_advisories_from_dir { my $adv = LoadFile($advfile); next unless $adv->{ID}; report_exit("Duplicate advisory $adv->{ID}") if $advisories{$adv->{ID}}; + report_exit("Unknown type $adv->{type}") unless + $config->{advisory_types}{$adv->{type}}; $advisories{$adv->{ID}} = $adv; my $statusfile = status_file($adv->{ID}); $adv->{status} = -f $statusfile ? LoadFile($statusfile) : {}; |