diff options
author | steveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-09 21:46:17 +0000 |
---|---|---|
committer | steveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-09 21:46:17 +0000 |
commit | 4c50e226d8458f1f25f224564b96960bbd5f2d1a (patch) | |
tree | 356a7553bae8880be3c11223a752b66d2458e863 /tools/licenses.py | |
parent | a70d72dec9ed82d0ad1d3dbcac94e25aad161e1e (diff) | |
download | chromium_src-4c50e226d8458f1f25f224564b96960bbd5f2d1a.zip chromium_src-4c50e226d8458f1f25f224564b96960bbd5f2d1a.tar.gz chromium_src-4c50e226d8458f1f25f224564b96960bbd5f2d1a.tar.bz2 |
Add a tool to check license compatibility with Android
This tool checks all third-party code used on Android, for the purposes of the Android WebView build.
BUG=138921
Review URL: https://chromiumcodereview.appspot.com/10816041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/licenses.py')
-rwxr-xr-x | tools/licenses.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/licenses.py b/tools/licenses.py index d67c082..d4140f8 100755 --- a/tools/licenses.py +++ b/tools/licenses.py @@ -310,13 +310,13 @@ def ContainsFiles(path): return False -def FindThirdPartyDirs(): +def FindThirdPartyDirs(prune_paths): """Find all third_party directories underneath the current directory.""" third_party_dirs = [] for path, dirs, files in os.walk('.'): path = path[len('./'):] # Pretty up the path. - if path in PRUNE_PATHS: + if path in prune_paths: dirs[:] = [] continue @@ -331,7 +331,7 @@ def FindThirdPartyDirs(): # Add all subdirectories that are not marked for skipping. for dir in dirs: dirpath = os.path.join(path, dir) - if dirpath not in PRUNE_PATHS: + if dirpath not in prune_paths: third_party_dirs.append(dirpath) # Don't recurse into any subdirs from here. @@ -353,7 +353,7 @@ def FindThirdPartyDirs(): def ScanThirdPartyDirs(): """Scan a list of directories and report on any problems we find.""" - third_party_dirs = FindThirdPartyDirs() + third_party_dirs = FindThirdPartyDirs(PRUNE_PATHS) errors = [] for path in sorted(third_party_dirs): @@ -381,7 +381,7 @@ def GenerateCredits(): template = template.replace('{{%s}}' % key, val) return template - third_party_dirs = FindThirdPartyDirs() + third_party_dirs = FindThirdPartyDirs(PRUNE_PATHS) entry_template = open('chrome/browser/resources/about_credits_entry.tmpl', 'rb').read() |