From f67127450a93cac1099dda1443487f84f2c2a1fc Mon Sep 17 00:00:00 2001 From: jj Date: Fri, 25 Jul 2025 11:45:33 +0000 Subject: [PATCH] domain-substitution: exclude LICENSE files from substitution --- devutils/update_lists.py | 6 ++++++ domain_substitution.list | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/devutils/update_lists.py b/devutils/update_lists.py index e1814152..e52f3874 100755 --- a/devutils/update_lists.py +++ b/devutils/update_lists.py @@ -114,6 +114,8 @@ DOMAIN_EXCLUDE_PREFIXES = [ 'third_party/blink/renderer/core/dom/document.cc', # Exclusion to allow download of sysroots 'build/linux/sysroot_scripts/sysroots.json', + # Licenses and credits + 'tools/licenses/licenses.py', ] # pylint: enable=line-too-long @@ -244,6 +246,10 @@ def should_domain_substitute(path, relative_path, search_regex, used_dep_set, us if relative_path_posix.startswith(exclude_prefix): used_dep_set.add(exclude_prefix) return False + # Skip LICENSE.* files so that they remain untouched. + for license_path in ['license', 'license.txt', 'license.html']: + if relative_path_posix.endswith('/' + license_path): + return False return _check_regex_match(path, search_regex) return False diff --git a/domain_substitution.list b/domain_substitution.list index a18216b9..d7d0d46a 100644 --- a/domain_substitution.list +++ b/domain_substitution.list @@ -6774,7 +6774,6 @@ third_party/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/__ third_party/catapult/third_party/gsutil/third_party/httplib2/python3/httplib2/__init__.py third_party/catapult/third_party/gsutil/third_party/httplib2/tests/_TODO_legacy/python2/httplib2test_appengine.py third_party/catapult/third_party/gsutil/third_party/httplib2/tests/test_proxy.py -third_party/catapult/third_party/gsutil/third_party/pyasn1-modules/LICENSE.txt third_party/catapult/third_party/gsutil/third_party/pyasn1-modules/pyasn1_modules/pem.py third_party/catapult/third_party/gsutil/third_party/pyasn1-modules/pyasn1_modules/rfc1155.py third_party/catapult/third_party/gsutil/third_party/pyasn1-modules/pyasn1_modules/rfc1157.py @@ -7002,7 +7001,6 @@ third_party/catapult/third_party/polymer/components/webcomponentsjs/ShadowDOM.js third_party/catapult/third_party/polymer/components/webcomponentsjs/ShadowDOM.min.js third_party/catapult/third_party/polymer/components/webcomponentsjs/webcomponents.js third_party/catapult/third_party/polymer/components/webcomponentsjs/webcomponents.min.js -third_party/catapult/third_party/pyasn1/LICENSE.txt third_party/catapult/third_party/pyasn1/pyasn1/codec/ber/decoder.py third_party/catapult/third_party/pyasn1/pyasn1/codec/ber/encoder.py third_party/catapult/third_party/pyasn1/pyasn1/codec/ber/eoo.py @@ -7031,7 +7029,6 @@ third_party/catapult/third_party/pyasn1/pyasn1/type/tag.py third_party/catapult/third_party/pyasn1/pyasn1/type/tagmap.py third_party/catapult/third_party/pyasn1/pyasn1/type/univ.py third_party/catapult/third_party/pyasn1/pyasn1/type/useful.py -third_party/catapult/third_party/pyasn1_modules/LICENSE.txt third_party/catapult/third_party/pyasn1_modules/pyasn1_modules/pem.py third_party/catapult/third_party/pyasn1_modules/pyasn1_modules/rfc1155.py third_party/catapult/third_party/pyasn1_modules/pyasn1_modules/rfc1157.py @@ -14262,7 +14259,6 @@ third_party/swiftshader/third_party/llvm-subzero/include/llvm/Support/CommandLin third_party/swiftshader/third_party/llvm-subzero/include/llvm/Support/Compiler.h third_party/swiftshader/third_party/marl/include/marl/trace.h third_party/swiftshader/third_party/marl/src/trace.cpp -third_party/swiftshader/third_party/subzero/LICENSE.TXT third_party/swiftshader/third_party/subzero/Makefile third_party/swiftshader/third_party/subzero/bloat/webtreemap.js third_party/swiftshader/third_party/subzero/pnacl-llvm/README.txt @@ -15046,7 +15042,6 @@ tools/json_schema_compiler/preview.py tools/json_schema_compiler/test/tabs.json tools/json_schema_compiler/test/windows.json tools/json_to_struct/PRESUBMIT.py -tools/licenses/licenses.py tools/licenses/licenses_test.py tools/linux/PRESUBMIT.py tools/mac/download_symbols.py @@ -15807,7 +15802,6 @@ url/gurl_unittest.cc url/ipc/url_param_traits_unittest.cc url/mojom/url_gurl_mojom_traits_unittest.cc url/origin_unittest.cc -url/third_party/mozilla/LICENSE.txt url/third_party/mozilla/url_parse.cc url/third_party/mozilla/url_parse.h url/url_canon_relative.cc