diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/check_GNU_style_lib.py | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 2ef5738..11a5c7b 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2025-05-09 Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> + + * check_GNU_style_lib.py: Remove literal prefix. + 2025-05-01 Gerald Pfeifer <gerald@pfeifer.com> * config-list.mk: Update FreeBSD targets to version 13. diff --git a/contrib/check_GNU_style_lib.py b/contrib/check_GNU_style_lib.py index f680983..8b930ef 100755 --- a/contrib/check_GNU_style_lib.py +++ b/contrib/check_GNU_style_lib.py @@ -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 |