platform_build_soong/cmd/merge_zips
Dan Willemsen 263dde779e Fix par file zip offsets
The zip file format does support scripts/programs prefixed to the
archive, though many of the offsets are supposed to start from the
beginning of the file. Some tools (python and zipinfo) are able to
read zip files with arbitrary prefixes, but others (libziparchive and
zipdetails) fail.

So pass the file to prefix onto the zip file into merge_zips so that we
can set the offsets from the real start of the file.

Test: m sepolicy_tests  (runs the embedded python interpreter)
Test: zipinfo out/host/linux-x86/bin/sepolicy_tests
Test: zipdetails out/host/linux-x86/bin/sepolicy_tests
Change-Id: If73d4c2465581f7de5aa47959284ecf2059df091
2018-12-03 15:55:15 -08:00
..
Android.bp Make merge_zips -stripFile use blueprint style globs 2018-07-16 15:24:43 -07:00
merge_zips.go Fix par file zip offsets 2018-12-03 15:55:15 -08:00
merge_zips_test.go Always allow duplicates with identical CRC32 and size 2018-10-17 15:49:53 -07:00