Commit 59de5c91 authored by mlamouri's avatar mlamouri Committed by Commit bot

Fix safely-roll-deps.py to use single quotes.

The regexp were using single quotes but the DEPS files is
using single quotes. With this CL, the DEPS file is correctly
parsed and updated.

BUG=None
TBR=eseidel@chromium.org (current LGTM not accepted)

Review URL: https://codereview.chromium.org/524583002

Cr-Commit-Position: refs/heads/master@{#292625}
parent 7c31daaf
...@@ -33,8 +33,8 @@ def process_deps(path, project, new_rev, is_dry_run): ...@@ -33,8 +33,8 @@ def process_deps(path, project, new_rev, is_dry_run):
# Hack for Blink to get the AutoRollBot running again. # Hack for Blink to get the AutoRollBot running again.
if project == "blink": if project == "blink":
project = "webkit" project = "webkit"
old_line = r'(\s+)"%s_revision": "([0-9a-f]{2,40})",' % project old_line = r"(\s+)'%s_revision': '([0-9a-f]{2,40})'," % project
new_line = r'\1"%s_revision": "%s",' % (project, new_rev) new_line = r"\1'%s_revision': '%s'," % (project, new_rev)
new_content = re.sub(old_line, new_line, content, 1) new_content = re.sub(old_line, new_line, content, 1)
old_rev = re.search(old_line, content).group(2) old_rev = re.search(old_line, content).group(2)
if not old_rev or new_content == content: if not old_rev or new_content == 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