Remove all ZIP64LIMIT hack
In the old days, we hacked values of ZIP64LIMIT to get around size limitations of non-zip64 supported zip files. Now that we switched to python3 + zip64, there's no point in keeping those hacks. Test: th Bug: 255683436 Change-Id: I913db33dad5503736c68a7a1f1321aa952019f60
This commit is contained in:
@@ -901,7 +901,7 @@ def WriteOtacerts(output_zip, filename, keys):
|
||||
certs_zip = zipfile.ZipFile(temp_file, "w", allowZip64=True)
|
||||
for k in keys:
|
||||
common.ZipWrite(certs_zip, k)
|
||||
common.ZipClose(certs_zip)
|
||||
certs_zip.close()
|
||||
common.ZipWriteStr(output_zip, filename, temp_file.getvalue())
|
||||
|
||||
|
||||
@@ -1529,8 +1529,8 @@ def main(argv):
|
||||
platform_api_level, codename_to_api_level_map,
|
||||
compressed_extension)
|
||||
|
||||
common.ZipClose(input_zip)
|
||||
common.ZipClose(output_zip)
|
||||
input_zip.close()
|
||||
output_zip.close()
|
||||
|
||||
if OPTIONS.vendor_partitions and OPTIONS.vendor_otatools:
|
||||
BuildVendorPartitions(args[1])
|
||||
|
Reference in New Issue
Block a user