summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBai Miao <[email protected]>2024-08-27 09:14:21 +0800
committerGitHub <[email protected]>2024-08-27 09:14:21 +0800
commitd6174f97617536f2076a9284f51acb1078839f01 (patch)
tree293e8dd7954933e3086f25b8c4b462f32b50cca6
parent9555c1843dc811bf609760e9d3b6259149b4550a (diff)
parentc3d03f97c06170bf5d6f365c78bede6e10d282b7 (diff)
Merge branch 'xmake-io:dev' into export_all
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 56191054c..cf5e8068c 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -784,7 +784,7 @@ function _instance:cachedir()
local name = self:displayname():lower():gsub("::", "_"):gsub("#", "_")
local version_str = self:version_str()
-- strip invalid characters on windows, e.g. `>= <=`
- if is_host("windows") then
+ if os.is_host("windows") then
version_str = version_str:gsub("[>=<]", "")
end
if self:is_local() then
@@ -813,7 +813,7 @@ function _instance:installdir(...)
local version_str = self:version_str()
if version_str then
-- strip invalid characters on windows, e.g. `>= <=`
- if is_host("windows") then
+ if os.is_host("windows") then
version_str = version_str:gsub("[>=<]", "")
end
installdir = path.join(installdir, version_str)