OSDN Git Service

fix archive files being created with perms 000
authorDoug Zongker <dougz@android.com>
Mon, 15 Jun 2009 21:31:53 +0000 (14:31 -0700)
committerDoug Zongker <dougz@android.com>
Mon, 15 Jun 2009 21:31:53 +0000 (14:31 -0700)
commit048e7ca15f6391681490ce564bc71194adf146aa
tree612aa7e5c2db7ce8a7ce29cc30191407e34da25f
parent398814fa75ee05ba9e77dd0057c469cc92ffd73e
fix archive files being created with perms 000

In python 2.5 and earlier, ZipFile.writestr(filename, data) results in
the file being added to the archive with permissions 000.  (See
http://svn.python.org/view?view=rev&revision=65235.)  Work around this
by creating a ZipInfo object and setting the permissions explicitly.
tools/releasetools/common.py
tools/releasetools/img_from_target_files
tools/releasetools/ota_from_target_files
tools/releasetools/sign_target_files_apks