summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-02-25 22:56:58 +0800
committerruki <[email protected]>2025-02-25 22:56:58 +0800
commitfdca3b2904d158ab22f402f647fb9c34eaf2e587 (patch)
treeb38330eb217d4e5bf3bfa1fbc4b806729044f561
parent088431250c1881d3fa88242865a22e921d667ad6 (diff)
fix 7z
-rw-r--r--xmake/modules/utils/archive/extract.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua
index 111d598e2..edf75eaf8 100644
--- a/xmake/modules/utils/archive/extract.lua
+++ b/xmake/modules/utils/archive/extract.lua
@@ -101,11 +101,11 @@ end
function _extract_using_7z(archivefile, outputdir, extension, opt)
-- find 7z
- local 7z = find_tool("7z")
- if not 7z then
+ local z7 = find_tool("7z")
+ if not z7 then
return false
end
- local program = 7z.program
+ local program = z7.program
-- p7zip cannot extract other archive format on msys/cygwin, but it can extract .tgz
-- https://github.com/xmake-io/xmake/issues/1575#issuecomment-898205462