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

Side by Side Diff: android_webview/tools/webview_licenses.py

Issue 135533007: [Android WebView] Fix small licenses-related inconsistencies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | breakpad/README.chromium » ('j') | third_party/webdriver/README.chromium » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/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 """Checks third-party licenses for the purposes of the Android WebView build. 6 """Checks third-party licenses for the purposes of the Android WebView build.
7 7
8 The Android tree includes a snapshot of Chromium in order to power the system 8 The Android tree includes a snapshot of Chromium in order to power the system
9 WebView. This tool checks that all code uses open-source licenses compatible 9 WebView. This tool checks that all code uses open-source licenses compatible
10 with Android, and that we meet the requirements of those licenses. It can also 10 with Android, and that we meet the requirements of those licenses. It can also
(...skipping 22 matching lines...) Expand all
33 import known_issues 33 import known_issues
34 34
35 def GetIncompatibleDirectories(): 35 def GetIncompatibleDirectories():
36 """Gets a list of third-party directories which use licenses incompatible 36 """Gets a list of third-party directories which use licenses incompatible
37 with Android. This is used by the snapshot tool and the AOSP bot. 37 with Android. This is used by the snapshot tool and the AOSP bot.
38 Returns: 38 Returns:
39 A list of directories. 39 A list of directories.
40 """ 40 """
41 41
42 whitelist = [ 42 whitelist = [
43 'A(pple )?PSL 2(\.0)?',
43 'Apache( Version)? 2(\.0)?', 44 'Apache( Version)? 2(\.0)?',
44 '(New )?([23]-Clause )?BSD( [23]-Clause)?( with advertising clause)?', 45 '(New )?([23]-Clause )?BSD( [23]-Clause)?( with advertising clause)?',
45 'L?GPL ?v?2(\.[01])?( or later)?', 46 'L?GPL ?v?2(\.[01])?( or later)?',
46 'MIT(/X11)?(-like)?', 47 'MIT(/X11)?(-like)?',
47 'MPL 1\.1 ?/ ?GPL 2(\.0)? ?/ ?LGPL 2\.1', 48 'MPL 1\.1 ?/ ?GPL 2(\.0)? ?/ ?LGPL 2\.1',
48 'MPL 2(\.0)?', 49 'MPL 2(\.0)?',
49 'Microsoft Limited Public License', 50 'Microsoft Limited Public License',
50 'Microsoft Permissive License', 51 'Microsoft Permissive License',
51 'Public Domain', 52 'Public Domain',
52 'Python', 53 'Python',
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 print ("Incompatibly licensed directories found:" + 307 print ("Incompatibly licensed directories found:" +
307 "\n".join(incompatible_directories)) 308 "\n".join(incompatible_directories))
308 return ScanResult.Errors 309 return ScanResult.Errors
309 return ScanResult.Ok 310 return ScanResult.Ok
310 311
311 parser.print_help() 312 parser.print_help()
312 return ScanResult.Errors 313 return ScanResult.Errors
313 314
314 if __name__ == '__main__': 315 if __name__ == '__main__':
315 sys.exit(main()) 316 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | breakpad/README.chromium » ('j') | third_party/webdriver/README.chromium » ('J')

Powered by Google App Engine
This is Rietveld 408576698