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