Skip to content

Commit 2db3e6f

Browse files
vladimirolteankuba-moo
authored andcommitted
netdev/tree_match: include commas in diffstat regex
If there's a patch set that contains pure dt-bindings changes and isn't marked as 'net' or 'net-next', it will fail to be detected through required_files, because the r_diffstat and r_header regexes assume a file name is composed of letters, numbers, slashes, dots, hyphens, underscores. Actually, dt-bindings file names also have a comma: vendor,schema.yml. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
1 parent 0783dbf commit 2db3e6f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

netdev/tree_match.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def _tree_name_should_be_local_files(raw_email):
8484
foreign_found = False
8585

8686
lines = raw_email.split('\n')
87-
r_diffstat = re.compile(r'^\s*([-\w/._]+)\s+\|\s+\d+\s*[-+]*\s*$')
88-
r_header = re.compile(r'\+\+\+ b/([-\w/._]+)$')
87+
r_diffstat = re.compile(r'^\s*([-\w/._,]+)\s+\|\s+\d+\s*[-+]*\s*$')
88+
r_header = re.compile(r'\+\+\+ b/([-\w/._,]+)$')
8989
for line in lines:
9090
match = r_header.match(line)
9191
if not match:

0 commit comments

Comments
 (0)