diff options
Diffstat (limited to 'extensions/Mageia/Extension.pm')
-rw-r--r-- | extensions/Mageia/Extension.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/Mageia/Extension.pm b/extensions/Mageia/Extension.pm index e419e4882..c2f8466e7 100644 --- a/extensions/Mageia/Extension.pm +++ b/extensions/Mageia/Extension.pm @@ -35,11 +35,11 @@ use constant MGA_SETTINGS => { sub bug_end_of_create_validators { my ($self, $args) = @_; - # If a user enters 'validated_update' as keyword, + # If a user enters 'validated_update' or 'validated_backport' as keyword, # automatically CC sysadmin-bugs@ml.mageia.org. my $keywords = $args->{params}->{keywords}; - if (grep { $_->name eq 'validated_update' } @$keywords) { + if (grep { $_->name =~ /^validated_(?:update|backport)$/ } @$keywords) { my $cc_list = $args->{params}->{cc}; if (!grep { $_ == SYSADMIN_USER_ID } @$cc_list) { push(@$cc_list, SYSADMIN_USER_ID); @@ -60,11 +60,11 @@ sub bug_end_of_update { $new_keywords_str = $args->{changes}->{keywords}->[1]; } - # If a user enters 'validated_update' as keyword, automatically - # CC sysadmin-bugs@ml.mageia.org. + # If a user enters 'validated_update' or 'validated_backport' as keyword, + # automatically CC sysadmin-bugs@ml.mageia.org. if ($new_keywords_str) { my @new_keywords = split(/[,\s]+/, $new_keywords_str); - if (grep { $_ eq 'validated_update' } @new_keywords + if (grep { $_ =~ /^validated_(?:update|backport)$/ } @new_keywords and !grep { $_->id == SYSADMIN_USER_ID } @{$bug->cc_users}) { # Safer to clear the cache and let Bugzilla regenerate them if needed. |