Update r8_release.py
Change-Id: I59e1e0a3ca81e893954194e1801d7120781c2d54
diff --git a/tools/r8_release.py b/tools/r8_release.py
index 7104c2b..b991ad2 100755
--- a/tools/r8_release.py
+++ b/tools/r8_release.py
@@ -396,11 +396,14 @@
result = re.search(version_match_regexp, line)
if result:
match_count = match_count + 1
- if match_count != 4:
- print(("Could not find the previous -dev release string to replace in " +
- "METADATA. Expected to find is mentioned 4 times. Please update %s " +
- "manually and run again with options --google3 " +
- "--use-existing-work-branch.") % metadata_path)
+ if match_count != 7:
+ print((
+ "Could not find the previous -dev release string to replace in "
+ + "METADATA. Expected to find is mentioned 7 times, but "
+ + "found %s occurrences. Please update %s manually and run "
+ + "again with options --google3 "
+ + "--use-existing-work-branch.")
+ % (match_count, metadata_path))
sys.exit(1)
sed(version_match_regexp, options.version, metadata_path)
sed(r'\{ year.*\}',