commit | 26e3d4aaafcbc64fd81ea8049318eea7c47502f0 | [log] [tgz] |
---|---|---|
author | Logan Chien <loganchien@google.com> | Thu Jan 25 23:37:04 2018 +0800 |
committer | Logan Chien <loganchien@google.com> | Thu Jan 25 23:37:04 2018 +0800 |
tree | 9304617265496c3fa180f2cbeb10b7c2604b3880 | |
parent | 75d6cae1b89933a1ebb92b6815556b5acb93e67e [diff] |
vndk-def: Fix is_zipfile() for Python 3.5 Python 3.5 adopts a fancy algorithm to detect the zip file. It will search for the magic words in the file, i.e. magic word does not have to be at the beginning. This commit adds an extra check to make sure "PK", the magic word for zip file, is at the beginning of the file. Test: ./vndk_definition_tool.py apk-deps --system ... --vendor ... Change-Id: I3e633709bc39187ae807aef97c6e0396d02266ea