diff options
| author | ruki <[email protected]> | 2022-04-30 21:39:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-04-30 21:39:37 +0800 |
| commit | 3c081be3b42a8ac2a9454a34c6ec299dfe423d55 (patch) | |
| tree | 01eb3df9e8904cf39bd126af877060577332c40d | |
| parent | d7b6a62bcc8e3ffd680a3d2ec51daa2b2ed3ccb2 (diff) | |
improve package key
| -rw-r--r-- | xmake/modules/private/action/require/impl/utils/requirekey.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/utils/requirekey.lua b/xmake/modules/private/action/require/impl/utils/requirekey.lua index fdd0f43da..cede66d30 100644 --- a/xmake/modules/private/action/require/impl/utils/requirekey.lua +++ b/xmake/modules/private/action/require/impl/utils/requirekey.lua @@ -40,8 +40,8 @@ function main(requireinfo, opt) if requireinfo.label then key = key .. "/" .. requireinfo.label end - if requireinfo.system ~= nil then - key = key .. "/" .. (requireinfo.system and "system" or "remote") + if requireinfo.system then + key = key .. "/system" end if key:startswith("/") then key = key:sub(2) @@ -64,3 +64,4 @@ function main(requireinfo, opt) return key end end + |
