Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Makes sure that all files contain proper licensing information.""" | 6 """Makes sure that all files contain proper licensing information.""" |
| 7 | 7 |
| 8 | 8 |
| 9 import json | 9 import json |
| 10 import optparse | 10 import optparse |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 python checklicenses.py --root ~/chromium/src third_party""" | 30 python checklicenses.py --root ~/chromium/src third_party""" |
| 31 | 31 |
| 32 | 32 |
| 33 WHITELISTED_LICENSES = [ | 33 WHITELISTED_LICENSES = [ |
| 34 'APSL (v2) BSD (4 clause)', | 34 'APSL (v2) BSD (4 clause)', |
| 35 'APSL (v2)', | 35 'APSL (v2)', |
| 36 'Anti-Grain Geometry', | 36 'Anti-Grain Geometry', |
| 37 'Apache (v2.0) BSD (2 clause)', | 37 'Apache (v2.0) BSD (2 clause)', |
| 38 'Apache (v2.0) BSD-like', | 38 'Apache (v2.0) BSD-like', |
| 39 'Apache (v2.0) GPL (v2)', | 39 'Apache (v2.0) GPL (v2)', |
| 40 'Apache (v2.0)', | 40 'Apache (v2.0)', |
|
Paweł Hajdan Jr.
2016/01/27 15:55:40
Wait, Apache is already whitelisted here, globally
| |
| 41 'Apple MIT', # https://fedoraproject.org/wiki/Licensing/Apple_MIT_License | 41 'Apple MIT', # https://fedoraproject.org/wiki/Licensing/Apple_MIT_License |
| 42 'BSD (2 clause) ISC', | 42 'BSD (2 clause) ISC', |
| 43 'BSD (2 clause) MIT/X11 (BSD like)', | 43 'BSD (2 clause) MIT/X11 (BSD like)', |
| 44 'BSD (2 clause)', | 44 'BSD (2 clause)', |
| 45 'BSD (3 clause) GPL (v2)', | 45 'BSD (3 clause) GPL (v2)', |
| 46 'BSD (3 clause) ISC', | 46 'BSD (3 clause) ISC', |
| 47 'BSD (3 clause) LGPL (v2 or later)', | 47 'BSD (3 clause) LGPL (v2 or later)', |
| 48 'BSD (3 clause) LGPL (v2.1 or later)', | 48 'BSD (3 clause) LGPL (v2.1 or later)', |
| 49 'BSD (3 clause) MIT/X11 (BSD like)', | 49 'BSD (3 clause) MIT/X11 (BSD like)', |
| 50 'BSD (3 clause)', | 50 'BSD (3 clause)', |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 'third_party/catapult/third_party/apiclient': [ | 216 'third_party/catapult/third_party/apiclient': [ |
| 217 'UNKNOWN', | 217 'UNKNOWN', |
| 218 ], | 218 ], |
| 219 | 219 |
| 220 # https://bugs.launchpad.net/beautifulsoup/+bug/1481316 | 220 # https://bugs.launchpad.net/beautifulsoup/+bug/1481316 |
| 221 # MIT license. | 221 # MIT license. |
| 222 'third_party/catapult/third_party/beautifulsoup': [ | 222 'third_party/catapult/third_party/beautifulsoup': [ |
| 223 'UNKNOWN' | 223 'UNKNOWN' |
| 224 ], | 224 ], |
| 225 | 225 |
| 226 # https://bitbucket.org/ned/coveragepy/issue/313/add-license-file-containing -2-3-or-4 | |
| 227 # Apache (v2.0) license, not shipped | |
| 228 'third_party/catapult/third_party/coverage': [ | |
| 229 'Apache (v2.0)' | |
| 230 ], | |
| 231 | |
| 226 # https://code.google.com/p/graphy/issues/detail?id=6 | 232 # https://code.google.com/p/graphy/issues/detail?id=6 |
| 227 # Apache (v2.0) | 233 # Apache (v2.0) |
| 228 'third_party/catapult/third_party/graphy': [ | 234 'third_party/catapult/third_party/graphy': [ |
| 229 'UNKNOWN', | 235 'UNKNOWN', |
| 230 ], | 236 ], |
| 231 | 237 |
| 232 # https://github.com/GoogleCloudPlatform/gsutil/issues/305 | 238 # https://github.com/GoogleCloudPlatform/gsutil/issues/305 |
| 233 ('third_party/catapult/third_party/gsutil/gslib/third_party/' | 239 ('third_party/catapult/third_party/gsutil/gslib/third_party/' |
| 234 'storage_apitools'): [ | 240 'storage_apitools'): [ |
| 235 'UNKNOWN', | 241 'UNKNOWN', |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 725 action='store_true', | 731 action='store_true', |
| 726 default=False, | 732 default=False, |
| 727 help='Ignore path-specific license whitelist.') | 733 help='Ignore path-specific license whitelist.') |
| 728 option_parser.add_option('--json', help='Path to JSON output file') | 734 option_parser.add_option('--json', help='Path to JSON output file') |
| 729 options, args = option_parser.parse_args() | 735 options, args = option_parser.parse_args() |
| 730 return check_licenses(options, args) | 736 return check_licenses(options, args) |
| 731 | 737 |
| 732 | 738 |
| 733 if '__main__' == __name__: | 739 if '__main__' == __name__: |
| 734 sys.exit(main()) | 740 sys.exit(main()) |
| OLD | NEW |