From 9cb8dbd5545c470162413551a727ffc059b374ea Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 10 Jul 2022 22:22:02 +0800 Subject: improve to install packages --- xmake/modules/private/action/require/impl/install_packages.lua | 8 ++++---- 1 file 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 -- cgit v1.3.1