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
This commit is contained in:
Kelvin Zhang
2023-05-15 11:13:26 -07:00
parent b036007592
commit b97416e09e

View File

@@ -525,8 +525,7 @@ def GetTargetFilesZipWithoutPostinstallConfig(input_file):
def ParseInfoDict(target_file_path): def ParseInfoDict(target_file_path):
with zipfile.ZipFile(target_file_path, 'r', allowZip64=True) as zfp: return common.LoadInfoDict(target_file_path)
return common.LoadInfoDict(zfp)
def GetTargetFilesZipForCustomVABCCompression(input_file, vabc_compression_param): def GetTargetFilesZipForCustomVABCCompression(input_file, vabc_compression_param):