tools/checklicense: Skip build directories

Skip a source tree root directory starting with 'build' (by
convention).

Remove previous logic from Chromium that does not apply to us.
This commit is contained in:
João Valverde 2022-12-07 17:18:44 +00:00
parent bcc77ab189
commit d86a9910e5
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ def check_licenses(options, args):
# All files in the build output directory are generated one way or another. # All files in the build output directory are generated one way or another.
# There's no need to check them. # There's no need to check them.
if filename.startswith('out/') or filename.startswith('sconsbuild/'): if os.path.dirname(filename).startswith('build'):
continue continue
# For now we're just interested in the license. # For now we're just interested in the license.