~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/zip_exporter.py

merge bzr.dev.

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,