diff options
| author | ruki <[email protected]> | 2022-07-10 22:22:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-07-10 22:22:02 +0800 |
| commit | 9cb8dbd5545c470162413551a727ffc059b374ea (patch) | |
| tree | 0f4e48235b0e9901ef3b7ce977843f6c093d57d3 | |
| parent | 78030eb5d15cfd5ce0c3b2a651a610aaf33f147d (diff) | |
improve to install packages
| -rw-r--r-- | xmake/modules/private/action/require/impl/install_packages.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua index d5116ade5..b69d8531d 100644 --- a/xmake/modules/private/action/require/impl/install_packages.lua +++ b/xmake/modules/private/action/require/impl/install_packages.lua @@ -307,7 +307,7 @@ function _fetch_packages(packages_fetch, installdeps) end end if instance == nil and #packages_pending > 0 then - scheduler.co_yield() + os.sleep(100) end end if instance then @@ -321,7 +321,7 @@ function _fetch_packages(packages_fetch, installdeps) end if not parallelize then while fetching_count > 0 do - scheduler.co_yield() + os.sleep(100) end end fetching_count = fetching_count + 1 @@ -426,7 +426,7 @@ function _install_packages(packages_install, packages_download, installdeps) end end if instance == nil and #packages_pending > 0 then - scheduler.co_yield() + os.sleep(100) end end if instance then @@ -444,7 +444,7 @@ function _install_packages(packages_install, packages_download, installdeps) end if not parallelize then while installing_count > 0 do - scheduler.co_yield() + os.sleep(100) end end installing_count = installing_count + 1 |
