aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/Advisories.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm
index 2d066b6..76bf4ef 100644
--- a/lib/MGA/Advisories.pm
+++ b/lib/MGA/Advisories.pm
@@ -208,6 +208,10 @@ sub assign_id {
return;
}
(my $bugnum) = $adv->{references}[0] =~ m/$config->{bugzilla_url}.*=([0-9]+)$/g;
+ if (!defined $bugnum) {
+ print STDERR "First reference does not appear to be a Mageia bug link\n";
+ return;
+ }
if ($advbugnum ne $bugnum) {
print STDERR "First reference is not the corresponding Mageia advisory bug\n";
return;