summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-20 20:47:40 +0800
committerruki <[email protected]>2021-02-20 20:47:40 +0800
commitb241052a21eeab56cae0a822f29ef2ac73d20926 (patch)
treebfa3c49f1061238e222854186d720a323de19f1f
parent266f4f7150a4def0c4fc2540ceb1fbf944cbd7ea (diff)
fix install packages
-rw-r--r--xmake/modules/private/action/require/impl/install_packages.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua
index aa94e8682..b7adf5400 100644
--- a/xmake/modules/private/action/require/impl/install_packages.lua
+++ b/xmake/modules/private/action/require/impl/install_packages.lua
@@ -422,7 +422,7 @@ function main(requires, opt)
-- fetch and register packages (with system) from local first
runjobs("fetch_packages", function (index)
local instance = packages[index]
- if instance and (not option.get("force") or (option.get("shallow") and instance:is_toplevel())) then
+ if instance and (not option.get("force") or (option.get("shallow") and not instance:is_toplevel())) then
instance:envs_enter()
instance:fetch()
instance:envs_leave()