~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/zip_exporter.py

  • Committer: Jelmer Vernooij
  • Date: 2011-02-16 17:20:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5666.
  • Revision ID: jelmer@samba.org-20110216172010-dp91q6ar15qf66pi
Fix setting of mode on directories in zip files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
# Or it won't consider the entry a directory
38
38
ZIP_DIRECTORY_BIT = (1 << 4)
39
39
FILE_PERMISSIONS = (0644 << 16)
 
40
DIR_PERMISSIONS = (0755 << 16)
40
41
 
41
42
_FILE_ATTR = stat.S_IFREG | FILE_PERMISSIONS
42
 
_DIR_ATTR = stat.S_IFDIR | ZIP_DIRECTORY_BIT
 
43
_DIR_ATTR = stat.S_IFDIR | ZIP_DIRECTORY_BIT | DIR_PERMISSIONS
43
44
 
44
45
 
45
46
def zip_exporter(tree, dest, root, subdir, filtered=False,