summaryrefslogtreecommitdiff
path: root/xmake/plugins/show
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-08 23:30:16 +0800
committerruki <[email protected]>2025-01-08 23:30:16 +0800
commit6ef0f9be8bb89a2c8cabd6d950ac104fbf3c88d5 (patch)
treecba29130af59b8551d87eba284ec9ac40327490f /xmake/plugins/show
parent7dec01ba2840236fc975d9213842108ed13e858d (diff)
improve package name
Diffstat (limited to 'xmake/plugins/show')
-rw-r--r--xmake/plugins/show/info/target.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/plugins/show/info/target.lua b/xmake/plugins/show/info/target.lua
index e3aa8829d..871ed321a 100644
--- a/xmake/plugins/show/info/target.lua
+++ b/xmake/plugins/show/info/target.lua
@@ -78,11 +78,11 @@ function _get_values_from_pkgs(target, name)
local info = components[component_name]
if info then
for _, value in ipairs(info[name]) do
- values[value] = string.format(" -> package(%s)", pkg:name())
+ values[value] = string.format(" -> package(%s)", pkg:fullname())
end
else
local components_str = table.concat(table.wrap(configinfo.components), ", ")
- utils.warning("unknown component(%s) in add_packages(%s, {components = {%s}})", component_name, pkg:name(), components_str)
+ utils.warning("unknown component(%s) in add_packages(%s, {components = {%s}})", component_name, pkg:fullname(), components_str)
end
end
end
@@ -95,7 +95,7 @@ function _get_values_from_pkgs(target, name)
else
-- get values from the builtin package configs
for _, value in ipairs(pkg:get(name)) do
- values[value] = string.format(" -> package(%s)", pkg:name())
+ values[value] = string.format(" -> package(%s)", pkg:fullname())
end
end
end