summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
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