summaryrefslogtreecommitdiff
path: root/xmake/actions/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-05 22:30:09 +0800
committerruki <[email protected]>2020-02-07 22:45:56 +0800
commit35ffc50b1dc6abc88586ac1986607db16772c686 (patch)
treeeebc6439f8c37391d3e528feae7e3f09ce274bc8 /xmake/actions/require/impl/package.lua
parentf48d5e6837c0039651385f409c8f3fc8188e086b (diff)
replace all runjobs
Diffstat (limited to 'xmake/actions/require/impl/package.lua')
-rw-r--r--xmake/actions/require/impl/package.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua
index 9b1df68a2..beac43ec2 100644
--- a/xmake/actions/require/impl/package.lua
+++ b/xmake/actions/require/impl/package.lua
@@ -633,7 +633,7 @@ function _install_packages(packages_install, packages_download)
packages_installing[index] = nil
packages_downloading[index] = nil
- end, #packages_install, (option.get("verbose") or option.get("diagnosis")) and 1 or 4, 300, function (running_jobs_indices)
+ end, {total = #packages_install, comax = (option.get("verbose") or option.get("diagnosis")) and 1 or 4, timeout = 300, timer = function (running_jobs_indices)
-- do not print progress info if be verbose
if option.get("verbose") or not show_wait then
@@ -668,7 +668,7 @@ function _install_packages(packages_install, packages_download)
end
cprintf(" .. %s", waitchars[waitindex + 1])
io.flush()
- end)
+ end})
end
-- the cache directory
@@ -727,7 +727,7 @@ function install_packages(requires, opt)
package:fetch()
package:envs_leave()
end
- end, #packages)
+ end, {total = #packages})
-- filter packages
local packages_install = {}