diff options
| author | ruki <[email protected]> | 2022-03-17 00:32:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-03-17 00:32:46 +0800 |
| commit | 64fde43f3f58d86446ed5ea0c7e4a187fd93f898 (patch) | |
| tree | 5daa25116e3a45d015078d63852d1409cab98e42 | |
| parent | ecf66aac5bed14dcb5aff3885c8d7eac12dbad34 (diff) | |
improve package key
| -rw-r--r-- | xmake/modules/private/action/require/impl/utils/requirekey.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/utils/requirekey.lua b/xmake/modules/private/action/require/impl/utils/requirekey.lua index d1792e50c..330f5a961 100644 --- a/xmake/modules/private/action/require/impl/utils/requirekey.lua +++ b/xmake/modules/private/action/require/impl/utils/requirekey.lua @@ -37,6 +37,9 @@ 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") + end if key:startswith("/") then key = key:sub(2) end |
