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

Commit b97416e0 authored by Kelvin Zhang's avatar Kelvin Zhang
Browse files

Allow source build to be an extracted target_files

common.LoadInfoDict() already supports loading from extracted
directories, just use it.

Test: generate an incremental OTA where both inputs are directories
Bug: 227848550
Bug: 277028723
Change-Id: Iedba831bb4d65d971df6b2ac95279e3234a02e2f
parent b0360075
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -525,8 +525,7 @@ def GetTargetFilesZipWithoutPostinstallConfig(input_file):


def ParseInfoDict(target_file_path):
  with zipfile.ZipFile(target_file_path, 'r', allowZip64=True) as zfp:
    return common.LoadInfoDict(zfp)
  return common.LoadInfoDict(target_file_path)


def GetTargetFilesZipForCustomVABCCompression(input_file, vabc_compression_param):