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
This commit is contained in:
@@ -26,6 +26,7 @@ import argparse
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import textwrap
|
||||||
|
|
||||||
# Bump this whenever the algorithm changes and you need bots/devs to re-sync,
|
# Bump this whenever the algorithm changes and you need bots/devs to re-sync,
|
||||||
# ignoring the .last_sync_chromium file
|
# ignoring the .last_sync_chromium file
|
||||||
@@ -104,6 +105,9 @@ def main():
|
|||||||
else:
|
else:
|
||||||
cache_path = '/b/git-cache'
|
cache_path = '/b/git-cache'
|
||||||
else:
|
else:
|
||||||
|
# Verbose, but not as verbose as on the buildbots.
|
||||||
|
args.append('-v')
|
||||||
|
|
||||||
# Support developers setting the cache_dir in .gclient.
|
# Support developers setting the cache_dir in .gclient.
|
||||||
cache_path = get_cache_dir()
|
cache_path = get_cache_dir()
|
||||||
|
|
||||||
@@ -143,6 +147,15 @@ def main():
|
|||||||
if target_os_list:
|
if target_os_list:
|
||||||
args += ['--deps=' + 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)
|
print 'Running "%s" in %s' % (' '.join(args), opts.chromium_dir)
|
||||||
ret = subprocess.call(args, cwd=opts.chromium_dir, env=env)
|
ret = subprocess.call(args, cwd=opts.chromium_dir, env=env)
|
||||||
if ret == 0:
|
if ret == 0:
|
||||||
|
Reference in New Issue
Block a user