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

Commit b8982fc5 authored by Håkan Kvist's avatar Håkan Kvist
Browse files

fixup! Allow ota_from_target_file to work entirely on directories

The following log message would always be shown:
WARNING : Cannot find care map file in target_file package

Break out of the care map copying loop as soon a file has been
copied. This ensures that else statement is only executed if no
care map file exists.

Test: Manual. Run ota_from_target_files with target-zip with and
    without care map files.
Change-Id: Ia196aa182ed81f21424317a7005f5634866b4b99
parent fe22cc38
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1063,6 +1063,8 @@ def GenerateAbOtaPackage(target_file, output_file, source_file=None):
      # ZIP_STORED.
      common.ZipWriteStr(output_zip, care_map_name, care_map_data,
                         compress_type=zipfile.ZIP_STORED)
      # break here to avoid going into else when care map has been handled
      break
    else:
      logger.warning("Cannot find care map file in target_file package")