OSDN Git Service

Wrap zipfile.write(), writestr() and close()
authorTao Bao <tbao@google.com>
Wed, 1 Apr 2015 18:21:55 +0000 (11:21 -0700)
committerTao Bao <tbao@google.com>
Fri, 8 May 2015 22:53:27 +0000 (15:53 -0700)
commitf3282b4a7fda46dfb546f2822e0f2081b4ced7ff
tree31a6aac86c0f1d104af5e698308c05626fec642c
parent821a554c1bd1758ba50596f223835a6da3bf6ecf
Wrap zipfile.write(), writestr() and close()

In order to work around the zip 2GiB limit, we need to wrap the related
functions in zipfile. Calls to those functions should always be replaced
with calls to the wrappers instead.

Bug: 18015246
Change-Id: I499574cee51ec4804bc10cbefe0b17940afed918
(cherry picked from commit 2ed665a033c587b276b1615516e5354e2ace47cd)
tools/releasetools/add_img_to_target_files.py
tools/releasetools/build_image.py
tools/releasetools/common.py
tools/releasetools/img_from_target_files.py
tools/releasetools/ota_from_target_files.py
tools/releasetools/sign_target_files_apks.py
tools/releasetools/test_common.py