Commit 5f06c70a authored by Matt Mueller's avatar Matt Mueller Committed by Commit Bot

tools/licenses.py should not include blank section for NOT_SHIPPED licenses

Bug: 1090998
Change-Id: Ib0d787b38e484d15965209f880d8cb8af3ecdc72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2230925
Commit-Queue: Matt Mueller <mattm@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@chromium.org>
Auto-Submit: Matt Mueller <mattm@chromium.org>
Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775282}
parent e0d1e322
......@@ -750,11 +750,11 @@ def GenerateLicenseFile(output_file, gn_out_dir, gn_target, target_os):
# Add necessary third_party.
for directory in sorted(third_party_dirs):
metadata = ParseDir(directory, _REPOSITORY_ROOT, require_license_file=True)
content.append('-' * 20)
content.append(directory.split(os.sep)[-1])
content.append('-' * 20)
license_file = metadata['License File']
if license_file and license_file != NOT_SHIPPED:
content.append('-' * 20)
content.append(directory.split(os.sep)[-1])
content.append('-' * 20)
content.append(_ReadFile(license_file))
content_text = '\n'.join(content)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment