diff options
author | Colin Guthrie <colin@mageia.org> | 2014-08-21 10:17:15 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-08-21 10:17:15 +0100 |
commit | a0fa339d1dcc6e3d517d969c0ecc668665a5e1f4 (patch) | |
tree | 62315b54f6bbbcdc2c911d3563bc0ae1fa7016e0 /lib/MGA/Advisories.pm | |
parent | b1ef4b80182280f8a1159ff121e71f7f80fcad50 (diff) | |
download | mgaadvisories-a0fa339d1dcc6e3d517d969c0ecc668665a5e1f4.tar mgaadvisories-a0fa339d1dcc6e3d517d969c0ecc668665a5e1f4.tar.gz mgaadvisories-a0fa339d1dcc6e3d517d969c0ecc668665a5e1f4.tar.bz2 mgaadvisories-a0fa339d1dcc6e3d517d969c0ecc668665a5e1f4.tar.xz mgaadvisories-a0fa339d1dcc6e3d517d969c0ecc668665a5e1f4.zip |
Add check to highlight that the first reference must be the MGA advisory bug
Diffstat (limited to 'lib/MGA/Advisories.pm')
-rw-r--r-- | lib/MGA/Advisories.pm | 4 |
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; |