Show More
@@ -9,7 +9,7 b' from i18n import _' | |||||
9 | from node import hex |
|
9 | from node import hex | |
10 | import cmdutil |
|
10 | import cmdutil | |
11 | import util, encoding |
|
11 | import util, encoding | |
12 |
import cStringIO, os |
|
12 | import cStringIO, os, tarfile, time, zipfile | |
13 | import zlib, gzip |
|
13 | import zlib, gzip | |
14 |
|
14 | |||
15 | def tidyprefix(dest, kind, prefix): |
|
15 | def tidyprefix(dest, kind, prefix): | |
@@ -172,10 +172,10 b' class zipit(object):' | |||||
172 | # unzip will not honor unix file modes unless file creator is |
|
172 | # unzip will not honor unix file modes unless file creator is | |
173 | # set to unix (id 3). |
|
173 | # set to unix (id 3). | |
174 | i.create_system = 3 |
|
174 | i.create_system = 3 | |
175 | ftype = stat.S_IFREG |
|
175 | ftype = 0x8000 # UNX_IFREG in unzip source code | |
176 | if islink: |
|
176 | if islink: | |
177 | mode = 0777 |
|
177 | mode = 0777 | |
178 | ftype = stat.S_IFLNK |
|
178 | ftype = 0xa000 # UNX_IFLNK in unzip source code | |
179 | i.external_attr = (mode | ftype) << 16L |
|
179 | i.external_attr = (mode | ftype) << 16L | |
180 | self.z.writestr(i, data) |
|
180 | self.z.writestr(i, data) | |
181 |
|
181 |
General Comments 0
You need to be logged in to leave comments.
Login now