diff options
| author | ruki <[email protected]> | 2021-08-02 10:20:56 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-02 10:20:56 +0800 |
| commit | eb1b93990da34d1be2ccace1bc9e378ad6209dbc (patch) | |
| tree | fe9dab4bbb51fa941f9e353c776a03b928e2ac16 | |
| parent | 488a917cf3d2f121b3147a7730668a9014e53bec (diff) | |
Update install_packages.lua
| -rw-r--r-- | xmake/modules/private/action/require/impl/install_packages.lua | 4 |
1 files changed, 3 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 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() |
