From 25ff83bc7b3e921aa540b88f6c848a78ee7d461f Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Tue, 25 Mar 2014 14:55:56 +0100 Subject: Update patches to stable branch 1750 Change-Id: I85149bf4405420813d07bee5259f11a192e86a73 Reviewed-by: Jocelyn Turcotte Reviewed-by: Zoltan Arvai --- tools/scripts/git_submodule.py | 2 ++ tools/scripts/version_resolver.py | 20 ++++++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) (limited to 'tools/scripts') diff --git a/tools/scripts/git_submodule.py b/tools/scripts/git_submodule.py index a364ef650..419263799 100644 --- a/tools/scripts/git_submodule.py +++ b/tools/scripts/git_submodule.py @@ -185,6 +185,7 @@ class Submodule: current_shasum = subprocessCheckOutput(['git', 'show', '-s', '--oneline']).split(' ')[0] if not self.shasum.startswith(current_shasum): # In case HEAD differs check out the actual shasum we require. + subprocessCall(['git', 'fetch']) error = subprocessCall(['git', 'checkout', self.shasum]) os.chdir(oldCwd) return error @@ -220,6 +221,7 @@ class Submodule: if self.url: subprocessCall(['git', 'submodule', 'add', '-f', self.url, self.path]) + subprocessCall(['git', 'submodule', 'sync', '--', self.path]) subprocessCall(['git', 'submodule', 'init', self.path]) subprocessCall(['git', 'submodule', 'update', self.path]) diff --git a/tools/scripts/version_resolver.py b/tools/scripts/version_resolver.py index b52b8f501..5c625472e 100644 --- a/tools/scripts/version_resolver.py +++ b/tools/scripts/version_resolver.py @@ -48,8 +48,8 @@ import json import urllib2 import git_submodule as GitSubmodule -chromium_version = '31.0.1650.63' -chromium_branch = '1650' +chromium_version = '33.0.1750.149' +chromium_branch = '1750' json_url = 'http://omahaproxy.appspot.com/all.json' git_deps_url = 'http://src.chromium.org/chrome/branches/' + chromium_branch + '/src/.DEPS.git' @@ -74,6 +74,14 @@ def readReleaseChannels(): channels[os].append({ 'channel': ver['channel'], 'version': ver['version'], 'branch': ver['true_branch'] }) return channels +def repositoryUrlFix(submodule): + # The git repository info for webrtc is outdated in the 1750 + # branch's .DEPS.git file, so we have to update the url. + # We should be able to remove this with a branch post 1750. + repository_url = submodule.url + if 'external/webrtc/stable' in repository_url: + submodule.url = repository_url.replace('external/webrtc/stable', 'external/webrtc/trunk') + def sanityCheckModules(submodules): submodule_dict = {} sys.stdout.write('\nverifying submodule refs.') @@ -92,13 +100,13 @@ def sanityCheckModules(submodules): sys.exit('ERROR: branch mismatch for ' + submodule.path + '(' + prev_module.ref + ' vs ' + submodule.ref + ')') print('Duplicate submodule ' + submodule.path + '. Using latest revison ' + str(submodule.revision) + '.') if submodule.ref: + repositoryUrlFix(submodule) sys.stdout.write('.') result = subprocess.check_output(['git', 'ls-remote', submodule.url, submodule.ref]) - # Fallback to git shasum if the parsed remote ref does not exist in the git repository. if submodule.ref not in result: - submodule.ref = submodule.revision = '' - if not submodule.shasum: - sys.exit('\nERROR: No valid remote found!') + # We could fall back to the git shasum if the parsed remote ref does not exist in + # the git repository but that would most certainly be outdated, so bail out here. + sys.exit('\nERROR: No valid remote found!') sys.stdout.flush() submodule_dict[submodule.path] = submodule print('done.\n') -- cgit v1.2.3