| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2014 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 download a Chromium checkout into the workspace. | 10 """Script to download a Chromium checkout into the workspace. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 import argparse | 25 import argparse |
| 26 import os | 26 import os |
| 27 import shutil | 27 import shutil |
| 28 import subprocess | 28 import subprocess |
| 29 import sys | 29 import sys |
| 30 import textwrap | 30 import textwrap |
| 31 | 31 |
| 32 # Bump this whenever the algorithm changes and you need bots/devs to re-sync, | 32 # Bump this whenever the algorithm changes and you need bots/devs to re-sync, |
| 33 # ignoring the .last_sync_chromium file | 33 # ignoring the .last_sync_chromium file |
| 34 SCRIPT_VERSION = 5 | 34 SCRIPT_VERSION = 6 |
| 35 | 35 |
| 36 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) | 36 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) |
| 37 CHROMIUM_NO_HISTORY = 'CHROMIUM_NO_HISTORY' | 37 CHROMIUM_NO_HISTORY = 'CHROMIUM_NO_HISTORY' |
| 38 | 38 |
| 39 # Duplicated from depot_tools/gclient.py since we cannot depend on that: | 39 # Duplicated from depot_tools/gclient.py since we cannot depend on that: |
| 40 DEPS_OS_CHOICES = { | 40 DEPS_OS_CHOICES = { |
| 41 "win32": "win", | 41 "win32": "win", |
| 42 "win": "win", | 42 "win": "win", |
| 43 "cygwin": "win", | 43 "cygwin": "win", |
| 44 "darwin": "mac", | 44 "darwin": "mac", |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 ret = subprocess.call(args, cwd=opts.chromium_dir, env=env) | 186 ret = subprocess.call(args, cwd=opts.chromium_dir, env=env) |
| 187 if ret == 0: | 187 if ret == 0: |
| 188 with open(flag_file, 'wb') as f: | 188 with open(flag_file, 'wb') as f: |
| 189 f.write(flag_file_content) | 189 f.write(flag_file_content) |
| 190 | 190 |
| 191 return ret | 191 return ret |
| 192 | 192 |
| 193 | 193 |
| 194 if __name__ == '__main__': | 194 if __name__ == '__main__': |
| 195 sys.exit(main()) | 195 sys.exit(main()) |
| OLD | NEW |