diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 22:36:41 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 22:36:41 +0000 |
commit | 4a7a3ac0fdb069ea4190a826b4bccd10babddf5b (patch) | |
tree | d181ac4c5d9c4e5396e3de4825e2d300b74ec426 /tools/licenses.py | |
parent | ca86c6249e8909794e8026b735fe22cdd941bd62 (diff) | |
download | chromium_src-4a7a3ac0fdb069ea4190a826b4bccd10babddf5b.zip chromium_src-4a7a3ac0fdb069ea4190a826b4bccd10babddf5b.tar.gz chromium_src-4a7a3ac0fdb069ea4190a826b4bccd10babddf5b.tar.bz2 |
Pass license-checker script for base/third_party/*.
License checker change:
Since most projects have a LICENSE file, look for that by default.
Since as far as I can tell NSS and NSPR are both just MPL tri-license without
a per project copyright, I think I will amend the license-checker to source
those licenses separately.
Review URL: http://codereview.chromium.org/1121003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42016 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/licenses.py')
-rwxr-xr-x | tools/licenses.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/licenses.py b/tools/licenses.py index d2262eb..1b935c9 100755 --- a/tools/licenses.py +++ b/tools/licenses.py @@ -26,10 +26,11 @@ def ParseDir(path): raise LicenseError("missing README.chromium") # Parse metadata fields out of README.chromium. + # We provide a default value of "LICENSE" for the license file. metadata = { - "License File": None, # Relative path to license text. - "Name": None, # Short name (for header on about:credits). - "URL": None, # Project home page. + "License File": "LICENSE", # Relative path to license text. + "Name": None, # Short name (for header on about:credits). + "URL": None, # Project home page. } for line in open(readme_path): line = line.strip() @@ -48,8 +49,9 @@ def ParseDir(path): license_file = metadata["License File"] license_path = os.path.join(path, license_file) if not os.path.exists(license_path): - raise LicenseError("README.chromium mentions license file '" + - license_file + "' that doesn't exist") + raise LicenseError("License file '" + license_file + "' doesn't exist. " + "Either add a 'License File:' section to " + "README.chromium or add the missing file.") return metadata |