Merge "Allow ro. properties to have arbitrary lengths"

This commit is contained in:
Tom Cherry 2017-10-17 22:33:11 +00:00 committed by Gerrit Code Review
commit 1d6e8e31d0
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ def validate(prop):
buildprops = prop.to_dict()
for key, value in buildprops.iteritems():
# Check build properties' length.
if len(value) > PROP_VALUE_MAX:
if len(value) > PROP_VALUE_MAX and not key.startswith("ro."):
check_pass = False
sys.stderr.write("error: %s cannot exceed %d bytes: " %
(key, PROP_VALUE_MAX))