From cdfeb5cdd44ee8cb1d7ae0e013f7aa5e8fd7dfe9 Mon Sep 17 00:00:00 2001 From: Simon Hong Date: Fri, 3 Jun 2022 17:59:25 +0900 Subject: [PATCH] Skip license checking for temp dirs created during the sync (#13585) * Skip license checking for temp dirs created during the sync fix https://github.com/brave/brave-browser/issues/23226 * Fix path problem on Windows Co-authored-by: Michael Herrmann --- script/brave_license_helper.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/brave_license_helper.py b/script/brave_license_helper.py index 2c287eef440..32c47560b8d 100644 --- a/script/brave_license_helper.py +++ b/script/brave_license_helper.py @@ -161,6 +161,11 @@ def AddBraveCredits(prune_paths, special_cases, prune_dirs, additional_paths): def CheckBraveMissingLicense(target_os, path, error): + # Skip chekcing for temp dirs from gclient. + # This is workaround fix. Temp dir should not be existed in vendor dir. + if path.replace('\\', '/').startswith('brave/vendor/_gclient'): + return + if path.startswith('brave'): if target_os == 'android': if path in DESKTOP_ONLY_PATHS: