Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07491322 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 3e77f445 b6075c58
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -569,6 +569,7 @@ class PropertyFiles(object):
      tokens.append('metadata.pb:' + ' ' * 15)
    else:
      tokens.append(ComputeEntryOffsetSize(METADATA_NAME))
      if METADATA_PROTO_NAME in zip_file.namelist():
          tokens.append(ComputeEntryOffsetSize(METADATA_PROTO_NAME))

    return ','.join(tokens)