OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license | 4 # Use of this source code is governed by a BSD-style license |
5 # that can be found in the LICENSE file in the root of the source | 5 # that can be found in the LICENSE file in the root of the source |
6 # tree. An additional intellectual property rights grant can be found | 6 # tree. An additional intellectual property rights grant can be found |
7 # in the file PATENTS. All contributing project authors may | 7 # in the file PATENTS. All contributing project authors may |
8 # be found in the AUTHORS file in the root of the source tree. | 8 # be found in the AUTHORS file in the root of the source tree. |
9 | 9 |
10 """Script to automatically roll dependencies in the WebRTC DEPS file.""" | 10 """Script to automatically roll dependencies in the WebRTC DEPS file.""" |
11 | 11 |
12 import argparse | 12 import argparse |
13 import base64 | 13 import base64 |
14 import collections | 14 import collections |
15 import logging | 15 import logging |
16 import os | 16 import os |
17 import re | 17 import re |
18 import subprocess | 18 import subprocess |
19 import sys | 19 import sys |
20 import urllib | 20 import urllib |
21 | 21 |
22 | 22 |
23 # Skip these dependencies (list without solution name prefix). | 23 # Skip these dependencies (list without solution name prefix). |
24 DONT_AUTOROLL_THESE = [ | 24 DONT_AUTOROLL_THESE = [ |
25 'src/third_party/gflags/src', | 25 'src/third_party/gflags/src', |
26 'src/third_party/winsdk_samples', | 26 'src/third_party/winsdk_samples', |
| 27 'src/webrtc/examples/androidtests/third_party/gradle', |
27 ] | 28 ] |
28 | 29 |
29 WEBRTC_URL = 'https://chromium.googlesource.com/external/webrtc' | 30 WEBRTC_URL = 'https://chromium.googlesource.com/external/webrtc' |
30 CHROMIUM_SRC_URL = 'https://chromium.googlesource.com/chromium/src' | 31 CHROMIUM_SRC_URL = 'https://chromium.googlesource.com/chromium/src' |
31 CHROMIUM_COMMIT_TEMPLATE = CHROMIUM_SRC_URL + '/+/%s' | 32 CHROMIUM_COMMIT_TEMPLATE = CHROMIUM_SRC_URL + '/+/%s' |
32 CHROMIUM_LOG_TEMPLATE = CHROMIUM_SRC_URL + '/+log/%s' | 33 CHROMIUM_LOG_TEMPLATE = CHROMIUM_SRC_URL + '/+log/%s' |
33 CHROMIUM_FILE_TEMPLATE = CHROMIUM_SRC_URL + '/+/%s/%s' | 34 CHROMIUM_FILE_TEMPLATE = CHROMIUM_SRC_URL + '/+/%s/%s' |
34 | 35 |
35 COMMIT_POSITION_RE = re.compile('^Cr-Commit-Position: .*#([0-9]+).*$') | 36 COMMIT_POSITION_RE = re.compile('^Cr-Commit-Position: .*#([0-9]+).*$') |
36 CLANG_REVISION_RE = re.compile(r'^CLANG_REVISION = \'(\d+)\'$') | 37 CLANG_REVISION_RE = re.compile(r'^CLANG_REVISION = \'(\d+)\'$') |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 _CreateRollBranch(opts.dry_run) | 473 _CreateRollBranch(opts.dry_run) |
473 UpdateDepsFile(deps_filename, current_cr_rev, new_cr_rev, changed_deps) | 474 UpdateDepsFile(deps_filename, current_cr_rev, new_cr_rev, changed_deps) |
474 _LocalCommit(commit_msg, opts.dry_run) | 475 _LocalCommit(commit_msg, opts.dry_run) |
475 _UploadCL(opts.dry_run, opts.rietveld_email) | 476 _UploadCL(opts.dry_run, opts.rietveld_email) |
476 _SendToCQ(opts.dry_run, opts.skip_cq) | 477 _SendToCQ(opts.dry_run, opts.skip_cq) |
477 return 0 | 478 return 0 |
478 | 479 |
479 | 480 |
480 if __name__ == '__main__': | 481 if __name__ == '__main__': |
481 sys.exit(main()) | 482 sys.exit(main()) |
OLD | NEW |