diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/fs/win32/tools.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index a79421b6..bfabe9a9 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
| @@ -229,7 +229,7 @@ end | |||
| 229 | -- additional arguments. | 229 | -- additional arguments. |
| 230 | -- @return boolean: true on success, false on failure. | 230 | -- @return boolean: true on success, false on failure. |
| 231 | function zip(zipfile, ...) | 231 | function zip(zipfile, ...) |
| 232 | return fs.execute_quiet(vars.SEVENZ.." a -tzip", zipfile, ...) | 232 | return fs.execute_quiet(vars.SEVENZ.." -aoa a -tzip", zipfile, ...) |
| 233 | end | 233 | end |
| 234 | 234 | ||
| 235 | --- Uncompress files from a .zip archive. | 235 | --- Uncompress files from a .zip archive. |
| @@ -237,7 +237,7 @@ end | |||
| 237 | -- @return boolean: true on success, false on failure. | 237 | -- @return boolean: true on success, false on failure. |
| 238 | function unzip(zipfile) | 238 | function unzip(zipfile) |
| 239 | assert(zipfile) | 239 | assert(zipfile) |
| 240 | return fs.execute_quiet(vars.SEVENZ.." x", zipfile) | 240 | return fs.execute_quiet(vars.SEVENZ.." -aoa x", zipfile) |
| 241 | end | 241 | end |
| 242 | 242 | ||
| 243 | --- Test is pathname is a directory. | 243 | --- Test is pathname is a directory. |
| @@ -298,7 +298,7 @@ end | |||
| 298 | -- @param archive string: Filename of archive. | 298 | -- @param archive string: Filename of archive. |
| 299 | -- @return boolean : success status | 299 | -- @return boolean : success status |
| 300 | local function gunzip(archive) | 300 | local function gunzip(archive) |
| 301 | return fs.execute_quiet(vars.SEVENZ.." x", archive) | 301 | return fs.execute_quiet(vars.SEVENZ.." -aoa x", archive) |
| 302 | end | 302 | end |
| 303 | 303 | ||
| 304 | --- Unpack an archive. | 304 | --- Unpack an archive. |
| @@ -310,7 +310,7 @@ function unpack_archive(archive) | |||
| 310 | assert(type(archive) == "string") | 310 | assert(type(archive) == "string") |
| 311 | 311 | ||
| 312 | local ok | 312 | local ok |
| 313 | local sevenzx = vars.SEVENZ.." x" | 313 | local sevenzx = vars.SEVENZ.." -aoa x" |
| 314 | if archive:match("%.tar%.gz$") then | 314 | if archive:match("%.tar%.gz$") then |
| 315 | ok = gunzip(archive) | 315 | ok = gunzip(archive) |
| 316 | if ok then | 316 | if ok then |
