check_GNU_style: Remove literal prefix

The path "b/binutils/dwarf.c" should be printed as binutils/dwarf.c",
not "inutils/dwarf.c".

contrib/ChangeLog:

	* check_GNU_style_lib.py: Remove literal prefix.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
This commit is contained in:
Torbjörn SVENSSON 2025-05-07 19:22:08 +02:00
parent 08d34c8812
commit 86a7642ef5
1 changed files with 3 additions and 1 deletions

View File

@ -279,7 +279,9 @@ def check_GNU_style_file(file, format):
patch = PatchSet(file)
for pfile in patch.added_files + patch.modified_files:
t = pfile.target_file.lstrip('b/')
t = pfile.target_file
if t.startswith('b/'):
t = t[2:]
# Skip testsuite files
if 'testsuite' in t or t.endswith('.py'):
continue