Merge "ota_utils: Don't fail if metadata proto doesn't exist" am: 07491322c3

Original change: https://android-review.googlesource.com/c/platform/build/+/1879917

Change-Id: I1535cdb272f9c75b0364cb0dce65520f0c523f38
This commit is contained in:
Treehugger Robot
2022-02-18 21:44:34 +00:00
committed by Automerger Merge Worker

View File

@@ -569,7 +569,8 @@ class PropertyFiles(object):
tokens.append('metadata.pb:' + ' ' * 15)
else:
tokens.append(ComputeEntryOffsetSize(METADATA_NAME))
tokens.append(ComputeEntryOffsetSize(METADATA_PROTO_NAME))
if METADATA_PROTO_NAME in zip_file.namelist():
tokens.append(ComputeEntryOffsetSize(METADATA_PROTO_NAME))
return ','.join(tokens)