summaryrefslogtreecommitdiff
path: root/xmake/actions/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-06 00:54:46 +0800
committerruki <[email protected]>2020-02-07 22:45:57 +0800
commitdfef2f8ca41884138c5105cc7cbf55a67510f54d (patch)
tree0b3f363f7a8758b9a1c6ec6f8650cd9e45f20a95 /xmake/actions/require/impl/package.lua
parentd40841b322485ec4200a857979b2ea77677a906a (diff)
fix curdir for scheduler
Diffstat (limited to 'xmake/actions/require/impl/package.lua')
-rw-r--r--xmake/actions/require/impl/package.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua
index 6afb7b876..acbbcb193 100644
--- a/xmake/actions/require/impl/package.lua
+++ b/xmake/actions/require/impl/package.lua
@@ -577,9 +577,7 @@ function _install_packages(packages_install, packages_download)
end
end
if package == nil and #packages_pending > 0 then
- local curdir = os.curdir()
scheduler.co_yield()
- os.cd(curdir)
end
end
if package then
@@ -594,9 +592,7 @@ function _install_packages(packages_install, packages_download)
end
if not parallelize then
while installing_count > 0 do
- local curdir = os.curdir()
scheduler.co_yield()
- os.cd(curdir)
end
end
installing_count = installing_count + 1