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

Commit b6075c58 authored by Luca Stefani's avatar Luca Stefani
Browse files

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

The protobuf addition is present only in S+
while the legacy metadata is always present

Test: tools/gen_update_config.py with ota from R
Change-Id: I482c75b6b3b2b1ade139e59dc9dc57dbf9731d45
parent dcb0e44c
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)