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

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

Issue 59913006: Roll swarming_client @ e98b112. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated the script directly Created 7 years, 1 month 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 | « DEPS ('k') | 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/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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 # 'Copyright' appears in license agreements 102 # 'Copyright' appears in license agreements
103 excluded_dirs_list.append('chrome/app/resources') 103 excluded_dirs_list.append('chrome/app/resources')
104 # This is a test output directory 104 # This is a test output directory
105 excluded_dirs_list.append('chrome/tools/test/reference_build') 105 excluded_dirs_list.append('chrome/tools/test/reference_build')
106 # This is tests directory, doesn't exist in the snapshot 106 # This is tests directory, doesn't exist in the snapshot
107 excluded_dirs_list.append('content/test/data') 107 excluded_dirs_list.append('content/test/data')
108 # This is a test output directory 108 # This is a test output directory
109 excluded_dirs_list.append('data/dom_perf') 109 excluded_dirs_list.append('data/dom_perf')
110 # Histogram tools, doesn't exist in the snapshot 110 # Histogram tools, doesn't exist in the snapshot
111 excluded_dirs_list.append('tools/histograms') 111 excluded_dirs_list.append('tools/histograms')
112 # Swarming tools, doesn't exist in the snapshot
113 excluded_dirs_list.append('tools/swarming_client')
112 # Arm sysroot tools, doesn't exist in the snapshot 114 # Arm sysroot tools, doesn't exist in the snapshot
113 excluded_dirs_list.append('arm-sysroot') 115 excluded_dirs_list.append('arm-sysroot')
114 # Data is not part of open source chromium, but are included on some bots. 116 # Data is not part of open source chromium, but are included on some bots.
115 excluded_dirs_list.append('data') 117 excluded_dirs_list.append('data')
116 118
117 args = ['android_webview/tools/find_copyrights.pl', 119 args = ['android_webview/tools/find_copyrights.pl',
118 '.' 120 '.'
119 ] + excluded_dirs_list 121 ] + excluded_dirs_list
120 p = subprocess.Popen(args=args, cwd=REPOSITORY_ROOT, stdout=subprocess.PIPE) 122 p = subprocess.Popen(args=args, cwd=REPOSITORY_ROOT, stdout=subprocess.PIPE)
121 lines = p.communicate()[0].splitlines() 123 lines = p.communicate()[0].splitlines()
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 return scan_result 284 return scan_result
283 elif args[0] == 'notice': 285 elif args[0] == 'notice':
284 print GenerateNoticeFile() 286 print GenerateNoticeFile()
285 return ScanResult.Ok 287 return ScanResult.Ok
286 288
287 parser.print_help() 289 parser.print_help()
288 return ScanResult.Errors 290 return ScanResult.Errors
289 291
290 if __name__ == '__main__': 292 if __name__ == '__main__':
291 sys.exit(main()) 293 sys.exit(main())
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698