Commit 2114d196 authored by kjellander@google.com's avatar kjellander@google.com

Update Chromium sync scripts for WebRTC r7222 changes

https://code.google.com/p/webrtc/source/detail?r=7222 contains
a few fixes for edge cases when moving back and forth with
Chromium DEPS.

TBR=fbarchard@google.com
BUG=

Review URL: https://webrtc-codereview.appspot.com/30529004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1090 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 77ba1546
...@@ -64,6 +64,7 @@ FILES = { ...@@ -64,6 +64,7 @@ FILES = {
'third_party/BUILD.gn': None, 'third_party/BUILD.gn': None,
} }
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
CHROMIUM_CHECKOUT = os.path.join('chromium', 'src') CHROMIUM_CHECKOUT = os.path.join('chromium', 'src')
LINKS_DB = 'links' LINKS_DB = 'links'
...@@ -240,6 +241,14 @@ class LibyuvLinkSetup(): ...@@ -240,6 +241,14 @@ class LibyuvLinkSetup():
source_dir, None, check_fn=os.path.isdir, source_dir, None, check_fn=os.path.isdir,
check_msg='directories') check_msg='directories')
if not on_bot and self._force:
# When making the manual switch from legacy SVN checkouts to the new
# Git-based Chromium DEPS, the .gclient_entries file that contains cached
# URLs for all DEPS entries must be removed to avoid future sync problems.
entries_file = os.path.join(os.path.dirname(ROOT_DIR), '.gclient_entries')
if os.path.exists(entries_file):
actions.append(Remove(entries_file, dangerous=True))
actions.sort() actions.sort()
if self._dry_run: if self._dry_run:
......
...@@ -59,6 +59,12 @@ def main(): ...@@ -59,6 +59,12 @@ def main():
return 0 return 0
os.unlink(flag_file) os.unlink(flag_file)
# To avoid gclient sync problems when DEPS entries have been removed we must
# wipe the .gclient_entries file that contains cached URLs for all DEPS.
entries_file = os.path.join(opts.chromium_dir, '.gclient_entries')
if os.path.exists(entries_file):
os.unlink(entries_file)
env = os.environ.copy() env = os.environ.copy()
env['GYP_CHROMIUM_NO_ACTION'] = '1' env['GYP_CHROMIUM_NO_ACTION'] = '1'
gclient_cmd = 'gclient.bat' if sys.platform.startswith('win') else 'gclient' gclient_cmd = 'gclient.bat' if sys.platform.startswith('win') else 'gclient'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment