summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-02 00:40:43 +0800
committerruki <[email protected]>2021-01-02 00:40:43 +0800
commit0e0450e7ac3d726f0728c698d2beb9d6b02c0a70 (patch)
treead87dbde028a4102c1d3f33e136b0c8e24a1cacf /xmake/core/package/package.lua
parent23cf7e2df45344351c7dd30dad8742282fb74363 (diff)
fix package cache conflicts
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index d1ee4e683..c128b8a0e 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -296,8 +296,8 @@ end
function _instance:lock(opt)
if self:filelock():trylock(opt) then
return true
- elseif option.get("diagnosis") then
- utils.warning("the current package is being accessed by other processes, please waiting!")
+ else
+ utils.cprint("${color.warning}package(%s) is being accessed by other processes, please waiting!", self:name())
end
local ok, errors = self:filelock():lock(opt)
if not ok then