From eb1b93990da34d1be2ccace1bc9e378ad6209dbc Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 2 Aug 2021 10:20:56 +0800 Subject: Update install_packages.lua --- xmake/modules/private/action/require/impl/install_packages.lua | 4 +++- 1 file changed, 3 insertions(+), 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 fb7647861..7e83ae939 100644 --- a/xmake/modules/private/action/require/impl/install_packages.lua +++ b/xmake/modules/private/action/require/impl/install_packages.lua @@ -520,7 +520,9 @@ 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 not instance:is_toplevel())) then + if instance and (instance:is_fetchonly() or + not option.get("force") or + (option.get("shallow") and not instance:is_toplevel())) then local oldenvs = os.getenvs() instance:envs_enter() instance:fetch() -- cgit v1.3.1