summaryrefslogtreecommitdiffstats
path: root/tools/scripts/version_resolver.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scripts/version_resolver.py')
-rw-r--r--tools/scripts/version_resolver.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/tools/scripts/version_resolver.py b/tools/scripts/version_resolver.py
index aec1bf6fa..396fc626a 100644
--- a/tools/scripts/version_resolver.py
+++ b/tools/scripts/version_resolver.py
@@ -62,14 +62,19 @@ qtwebengine_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..',
snapshot_src_dir = os.path.abspath(os.path.join(qtwebengine_root, 'src/3rdparty'))
upstream_src_dir = os.path.abspath(snapshot_src_dir + '_upstream')
+submodule_blacklist = [
+ 'third_party/WebKit/LayoutTests/w3c/csswg-test'
+ , 'third_party/WebKit/LayoutTests/w3c/web-platform-tests'
+ , 'chrome/tools/test/reference_build/chrome_mac'
+ , 'chrome/tools/test/reference_build/chrome_linux'
+ , 'chrome/tools/test/reference_build/chrome_win'
+ ]
+
sys.path.append(os.path.join(qtwebengine_root, 'tools', 'scripts'))
def currentVersion():
return chromium_version
-def currentBranch():
- return chromium_branch
-
def readReleaseChannels():
response = urllib2.urlopen(json_url)
raw_json = response.read().strip()
@@ -139,7 +144,7 @@ def readSubmodules():
git_dict[sub.path] = sub
for sub in svn_submodules:
- if 'reference_build' not in sub.path and (sub.revision or sub.shasum) and sub.path in git_dict:
+ if (sub.revision or sub.shasum) and sub.path in git_dict:
submodule_dict[sub.path] = sub
for git in git_submodules:
@@ -151,6 +156,11 @@ def readSubmodules():
# We use the git shasum as fallback.
module.shasum = git.shasum
+ # Remove unwanted upstream submodules
+ for path in submodule_blacklist:
+ if path in submodule_dict:
+ del submodule_dict[path]
+
return sanityCheckModules(submodule_dict.values())
def findSnapshotBaselineSha1():