aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MGA
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MGA')
-rw-r--r--lib/MGA/Advisories.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm
index 76bf4ef..f8d7f48 100644
--- a/lib/MGA/Advisories.pm
+++ b/lib/MGA/Advisories.pm
@@ -200,8 +200,7 @@ sub assign_id {
} else {
# Advisories are not always just [0-9]+.adv, but are
# sometimes [0-9]+.mga3.adv etc. so extract the real bug number
- my $advbugnum = $advname;
- $advbugnum =~ s/[^0-9]//g;
+ (my $advbugnum) = $advname =~ m/^([0-9]+)/g;
if (scalar($adv->{references}) < 1) {
print STDERR "No reference links found in advisory\n";
@@ -213,7 +212,7 @@ sub assign_id {
return;
}
if ($advbugnum ne $bugnum) {
- print STDERR "First reference is not the corresponding Mageia advisory bug\n";
+ print STDERR "First reference is not the corresponding Mageia advisory bug ($advbugnum != $bugnum)\n";
return;
}