diff options
| author | ruki <[email protected]> | 2020-11-16 23:13:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-16 23:13:39 +0800 |
| commit | 055669930d7d250894cd7aa7881b8e203b9e700c (patch) | |
| tree | 8a336fa2c2f93f7543aeb77440281ecdd767bcb8 | |
| parent | 61eb867bf473a5e7254f2b841b66136e77f408cf (diff) | |
improve 7zip to support .tgz
| -rw-r--r-- | xmake/modules/utils/archive/extract.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua index 06505f9f8..0ebe1a091 100644 --- a/xmake/modules/utils/archive/extract.lua +++ b/xmake/modules/utils/archive/extract.lua @@ -94,7 +94,7 @@ function _extract_using_7z(archivefile, outputdir, extension, opt) -- extract to *.tar file first local outputdir_old = nil - if extension:startswith(".tar.") then + if extension:startswith(".tar.") or extension == ".tgz" then outputdir_old = outputdir outputdir = os.tmpfile({ramdisk = false}) .. ".tar" end |
