Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: tools/licenses.py

Issue 888883004: Added gsutil as an exception because it's downloaded by buildbot and not shipped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 """Utility for checking and processing licensing information in third_party 6 """Utility for checking and processing licensing information in third_party
7 directories. 7 directories.
8 8
9 Usage: licenses.py <command> 9 Usage: licenses.py <command>
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 "License Android Compatible" : "yes", 230 "License Android Compatible" : "yes",
231 }, 231 },
232 os.path.join('third_party', 'khronos_glcts'): { 232 os.path.join('third_party', 'khronos_glcts'): {
233 # These sources are not shipped, are not public, and it isn't 233 # These sources are not shipped, are not public, and it isn't
234 # clear why they're tripping the license check. 234 # clear why they're tripping the license check.
235 "Name": "khronos_glcts", 235 "Name": "khronos_glcts",
236 "URL": "http://no-public-url", 236 "URL": "http://no-public-url",
237 "License": "Khronos", 237 "License": "Khronos",
238 "License File": "NOT_SHIPPED", 238 "License File": "NOT_SHIPPED",
239 }, 239 },
240 os.path.join('tools', 'telemetry', 'third_party', 'gsutil'): {
241 "Name": "gsutil",
242 "URL": "https://cloud.google.com/storage/docs/gsutil",
243 "License": "Apache 2.0",
244 "License File": "NOT_SHIPPED",
245 },
240 } 246 }
241 247
242 # Special value for 'License File' field used to indicate that the license file 248 # Special value for 'License File' field used to indicate that the license file
243 # should not be used in about:credits. 249 # should not be used in about:credits.
244 NOT_SHIPPED = "NOT_SHIPPED" 250 NOT_SHIPPED = "NOT_SHIPPED"
245 251
246 252
247 class LicenseError(Exception): 253 class LicenseError(Exception):
248 """We raise this exception when a directory's licensing info isn't 254 """We raise this exception when a directory's licensing info isn't
249 fully filled out.""" 255 fully filled out."""
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 elif command == 'credits': 471 elif command == 'credits':
466 if not GenerateCredits(): 472 if not GenerateCredits():
467 return 1 473 return 1
468 else: 474 else:
469 print __doc__ 475 print __doc__
470 return 1 476 return 1
471 477
472 478
473 if __name__ == '__main__': 479 if __name__ == '__main__':
474 sys.exit(main()) 480 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698