diff mbox series

[layerindex-web,1/6] rrs_maintainer_history: new override syntax

Message ID ea947724eb23c7263d52c555d3c95cdf65f52798.1705341467.git.tim.orling@konsulko.com
State New
Headers show
Series [layerindex-web,1/6] rrs_maintainer_history: new override syntax | expand

Commit Message

Tim Orling Jan. 15, 2024, 6:03 p.m. UTC
* 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>
---
 rrs/tools/rrs_maintainer_history.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/rrs/tools/rrs_maintainer_history.py b/rrs/tools/rrs_maintainer_history.py
index 15e1d17..d2dd94a 100755
--- a/rrs/tools/rrs_maintainer_history.py
+++ b/rrs/tools/rrs_maintainer_history.py
@@ -37,7 +37,7 @@  MAINTAINERS_INCLUDE_PATH = 'conf/distro/include/maintainers.inc'
 """
 def get_recipe_maintainer(line, logger):
     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)
     if match: