summaryrefslogtreecommitdiffstats
path: root/tools/licenses.py
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 15:29:44 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 15:29:44 +0000
commit2539549a72944343b06d909da3cb2aaacd234d1f (patch)
treec58e7efee618b931d70d4e5928d068047ff471f6 /tools/licenses.py
parentd1b229dc75dbe281e3d7e4c2fdcbbe42f7457bd0 (diff)
downloadchromium_src-2539549a72944343b06d909da3cb2aaacd234d1f.zip
chromium_src-2539549a72944343b06d909da3cb2aaacd234d1f.tar.gz
chromium_src-2539549a72944343b06d909da3cb2aaacd234d1f.tar.bz2
Pass tools/licenses.py for more directories.
We're now down to only 4 dirs that don't pass the license checker. They will require separate changes. Modify the license checker to only print failing dirs. BUG=39240 Review URL: http://codereview.chromium.org/1530040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/licenses.py')
-rwxr-xr-xtools/licenses.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/tools/licenses.py b/tools/licenses.py
index cf4b4af..4ed3fab 100755
--- a/tools/licenses.py
+++ b/tools/licenses.py
@@ -12,13 +12,22 @@ import os
# Paths from the root of the tree to directories to skip.
PRUNE_PATHS = set([
+ # Assume for now that breakpad has their licensing in order.
+ "breakpad",
+
# This is just a tiny vsprops file, presumably written by the googleurl
# authors. Not third-party code.
"googleurl/third_party/icu",
+ # Assume for now that native client has their licensing in order.
+ "native_client",
+
# We don't bundle o3d samples into our resulting binaries.
"o3d/samples",
+ # Not in the public Chromium tree.
+ "third_party/adobe",
+
# Written as part of Chromium.
"third_party/fuzzymatch",
@@ -44,6 +53,10 @@ SPECIAL_CASES = {
"Name": "pywebsocket",
"URL": "http://code.google.com/p/pywebsocket/",
},
+ 'third_party/WebKit': {
+ "Name": "WebKit",
+ "URL": "http://webkit.org/",
+ },
}
class LicenseError(Exception):
@@ -114,9 +127,6 @@ def ScanThirdPartyDirs(third_party_dirs):
except LicenseError, e:
errors.append((path, e.args[0]))
continue
- print path, "OK:", metadata["License File"]
-
- print
for path, error in sorted(errors):
print path + ": " + error