diff options
author | kjellander@webrtc.org <kjellander@webrtc.org> | 2015-03-05 14:38:09 +0000 |
---|---|---|
committer | kjellander@webrtc.org <kjellander@webrtc.org> | 2015-03-05 14:38:42 +0000 |
commit | 74304330df4ed276b78f0fcdc51bcf77222d08dc (patch) | |
tree | 712116778db68397f07519a1c84746d2851b9b03 /sync_chromium.py | |
parent | 2386d6dd92f10a715f131b5ad408b1babc1f35b0 (diff) | |
download | webrtc-74304330df4ed276b78f0fcdc51bcf77222d08dc.tar.gz |
Print better information during Chromium sync.
Many users are having problems with the initial sync.
Let's print a bit more information and advice on how
to recover from an aborted sync.
R=phoglund@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/42229004
Cr-Commit-Position: refs/heads/master@{#8617}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8617 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'sync_chromium.py')
-rwxr-xr-x | sync_chromium.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sync_chromium.py b/sync_chromium.py index abea33b599..cc850f4265 100755 --- a/sync_chromium.py +++ b/sync_chromium.py @@ -26,6 +26,7 @@ import argparse import os import subprocess import sys +import textwrap # Bump this whenever the algorithm changes and you need bots/devs to re-sync, # ignoring the .last_sync_chromium file @@ -104,6 +105,9 @@ def main(): else: cache_path = '/b/git-cache' else: + # Verbose, but not as verbose as on the buildbots. + args.append('-v') + # Support developers setting the cache_dir in .gclient. cache_path = get_cache_dir() @@ -143,6 +147,15 @@ def main(): if target_os_list: args += ['--deps=' + target_os_list] + print textwrap.dedent("""\ + +--------------------------------------------------------------------+ + | NOTICE: This sync of Chromium will take a very long time the first | + | time you checkout WebRTC as several gigabytes of data has | + | to be downloaded. Make sure you don't abort this download | + | or you will have to issue a 'gclient sync' followed by a | + | 'git auto-svn' to complete the initial setup. If that | + | fails, you have to wipe everything clean and start over. | + +--------------------------------------------------------------------+""") print 'Running "%s" in %s' % (' '.join(args), opts.chromium_dir) ret = subprocess.call(args, cwd=opts.chromium_dir, env=env) if ret == 0: |