Commit b06e46f1 authored by Hans Wennborg's avatar Hans Wennborg Committed by Commit Bot

Clang upload_revision.py: Fix the CLANG_SUB_REVISION regex

I introduced spaces around CLANG_SUB_REVISION in crrev.com/656007
This updates upload_revision.py to match.

Bug: 884608
Change-Id: I6781bdf86386e8f3b4d3e68776673af249c74926
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1599598
Auto-Submit: Hans Wennborg <hans@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#657654}
parent 8939017d
...@@ -31,8 +31,8 @@ def PatchRevision(clang_revision, clang_sub_revision): ...@@ -31,8 +31,8 @@ def PatchRevision(clang_revision, clang_sub_revision):
content = re.sub("CLANG_REVISION = '[0-9]+'", content = re.sub("CLANG_REVISION = '[0-9]+'",
"CLANG_REVISION = '{}'".format(clang_revision), "CLANG_REVISION = '{}'".format(clang_revision),
content, count=1) content, count=1)
content = re.sub("CLANG_SUB_REVISION=[0-9]+", content = re.sub("CLANG_SUB_REVISION = [0-9]+",
"CLANG_SUB_REVISION={}".format(clang_sub_revision), "CLANG_SUB_REVISION = {}".format(clang_sub_revision),
content, count=1) content, count=1)
with open(UPDATE_PY_PATH, 'wb') as f: with open(UPDATE_PY_PATH, 'wb') as f:
f.write(content) f.write(content)
......
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