From 77db5dbabe078afc87809bc7295eaae1110bdf78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 20 Sep 2017 19:27:06 +0200 Subject: Reset 'advisory' keyword instead of 'validated_update' for invalid advisories This is now possible since 'advisory' was made a keyword, while it used to be written in the Whiteboard field. --- NEWS | 3 +++ lib/MGA/Advisories.pm | 4 ++-- 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"; -- cgit v1.2.1