From b241052a21eeab56cae0a822f29ef2ac73d20926 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 20 Feb 2021 20:47:40 +0800 Subject: fix install packages --- xmake/modules/private/action/require/impl/install_packages.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.3.1