summaryrefslogtreecommitdiff
path: root/xmake/actions/require/install.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-02 00:56:35 +0800
committerruki <[email protected]>2021-01-02 00:56:35 +0800
commite61c1c15aacb34ebd1f5c11e271d2047febb9250 (patch)
tree3ede2cadb194f22d944c75030f53e265ead648d8 /xmake/actions/require/install.lua
parentf56db4a0eaf275f10cfb967f5dd5508fc3c9e37e (diff)
fix register packages
Diffstat (limited to 'xmake/actions/require/install.lua')
-rw-r--r--xmake/actions/require/install.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/require/install.lua b/xmake/actions/require/install.lua
index cedc3e434..90366b1b6 100644
--- a/xmake/actions/require/install.lua
+++ b/xmake/actions/require/install.lua
@@ -115,9 +115,9 @@ function _register_required_packages(packages)
local registered_in_group = {}
for _, instance in ipairs(packages) do
- -- only register the first package in same group
+ -- only register the first package in same group and root packages
local group = instance:group()
- if not group or not registered_in_group[group] then
+ if not instance:parents() and (not group or not registered_in_group[group]) then
-- do not register binary package
local requireinfo = project.require(instance:alias() or instance:name())