aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-09-20 19:27:06 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-09-20 19:28:37 +0200
commit77db5dbabe078afc87809bc7295eaae1110bdf78 (patch)
tree0e10e9f7dc0720e291c02957b93f65be64bf35d7 /lib
parent87dcf889340487cb564ca36ed433329455999988 (diff)
downloadmgaadvisories-77db5dbabe078afc87809bc7295eaae1110bdf78.tar
mgaadvisories-77db5dbabe078afc87809bc7295eaae1110bdf78.tar.gz
mgaadvisories-77db5dbabe078afc87809bc7295eaae1110bdf78.tar.bz2
mgaadvisories-77db5dbabe078afc87809bc7295eaae1110bdf78.tar.xz
mgaadvisories-77db5dbabe078afc87809bc7295eaae1110bdf78.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/Advisories.pm4
1 files changed, 2 insertions, 2 deletions
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";