Skip to content

Commit

Permalink
fix invalid path
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Aug 26, 2024
1 parent 0783a48 commit 564e6d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xmake/core/package/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ function _instance:cachedir()
--
local name = self:displayname():lower():gsub("::", "_"):gsub("#", "_")
local version_str = self:version_str()
if self:is_thirdparty() then
-- strip `>= <=`
-- strip invalid characters on windows, e.g. `>= <=`
if is_host("windows") then
version_str = version_str:gsub("[>=<]", "")
end
if self:is_local() then
Expand Down Expand Up @@ -812,8 +812,8 @@ function _instance:installdir(...)
end
local version_str = self:version_str()
if version_str then
if self:is_thirdparty() then
-- strip `>= <=`
-- strip invalid characters on windows, e.g. `>= <=`
if is_host("windows") then
version_str = version_str:gsub("[>=<]", "")
end
installdir = path.join(installdir, version_str)
Expand Down

0 comments on commit 564e6d1

Please sign in to comment.