commit | 048e7ca15f6391681490ce564bc71194adf146aa | [log] [tgz] |
---|---|---|
author | Doug Zongker <dougz@android.com> | Mon Jun 15 14:31:53 2009 -0700 |
committer | Doug Zongker <dougz@android.com> | Mon Jun 15 14:31:53 2009 -0700 |
tree | 612aa7e5c2db7ce8a7ce29cc30191407e34da25f | |
parent | 398814fa75ee05ba9e77dd0057c469cc92ffd73e [diff] |
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.