aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--lib/MGA/Advisories.pm4
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index dd45056..b392549 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- MGA/Advisories.pm: Reset 'advisory' keyword instead of 'validated_update'
+ for invalid advisories
+
Version 0.23
- template: also change dist-suffix from mga4 to mga5
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm
index a3e02ff..9b29342 100644
--- a/lib/MGA/Advisories.pm
+++ b/lib/MGA/Advisories.pm
@@ -354,7 +354,7 @@ sub assign_id {
print STDERR "Error: Cross check failed.\n";
if ($found_keyword) {
ReadMode 4; # Turn off controls keys
- print "Post failure message to Bugzilla and reset 'validated_update' keyword (requires login)? [y/N]: ";
+ print "Post failure message to Bugzilla and reset 'advisory' keyword (requires login)? [y/N]: ";
my $key = 'x';
while ( $key ne "\n" && $key ne "y" && $key ne "Y" && $key ne "n" && $key ne "N" ) {
$key = ReadKey(0);
@@ -365,7 +365,7 @@ sub assign_id {
} else {
print " ✔\n";
- if (call_bz('Bug.update', { ids => [$bugnum], comment => { body => "Update ID assignment failed\n\n$buffer\n\n'validated_update' keyword reset." }, keywords => { set => grep { $_ ne 'validated_update' } @{$bug->{keywords}} } })) {
+ if (call_bz('Bug.update', { ids => [$bugnum], comment => { body => "Update ID assignment failed\n\n$buffer\n\n'advisory' keyword reset." }, keywords => { set => grep { $_ ne 'advisory' } @{$bug->{keywords}} } })) {
print "Successfully posted to Bugzilla\n";
} else {
print "Failed to post to Bugzilla\n";