rrs_maintainer_history: new override syntax

* Allow the regex for RECIPE_MAINTAINER to use either _ or : override
  syntax to allow processing maintainer changes across the change
  boundary.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
This commit is contained in:
Tim Orling 2024-01-09 10:25:30 -08:00
parent 662ca9a4be
commit ea947724eb

View File

@ -37,7 +37,7 @@ MAINTAINERS_INCLUDE_PATH = 'conf/distro/include/maintainers.inc'
""" """
def get_recipe_maintainer(line, logger): def get_recipe_maintainer(line, logger):
import re import re
regex = re.compile('^RECIPE_MAINTAINER_pn-(?P<pn>.*)\s=\s"(?P<name>.+) <(?P<email>.*)>"$') regex = re.compile('^RECIPE_MAINTAINER[:_]pn-(?P<pn>.*)\s=\s"(?P<name>.+) <(?P<email>.*)>"$')
match = regex.search(line) match = regex.search(line)
if match: if match: