summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/deb/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-29 22:49:37 +0800
committerruki <[email protected]>2026-03-29 22:49:41 +0800
commit1bccfc273af2b1d579d033324bca481e15c58653 (patch)
tree192697793bd61d48b4423da0ac4a1eab804d80dc /xmake/plugins/pack/deb/main.lua
parentf4513cc28aa778e1ad0d050511cc7e295fe81e32 (diff)
fix const limit on lua5.5
Diffstat (limited to 'xmake/plugins/pack/deb/main.lua')
-rw-r--r--xmake/plugins/pack/deb/main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua
index cfcdb0dfd..930dcb225 100644
--- a/xmake/plugins/pack/deb/main.lua
+++ b/xmake/plugins/pack/deb/main.lua
@@ -81,6 +81,7 @@ function _get_customcmd(package, installcmds, cmd)
elseif cmd.program then
local argv = {}
for _, arg in ipairs(cmd.argv) do
+ local arg = arg
if path.instance_of(arg) then
arg = arg:clone():set(_translate_filepath(package, arg:rawstr())):str()
elseif path.is_absolute(arg) then
@@ -206,6 +207,7 @@ function _pack_deb(debuild, package)
end)
end
for _, name in ipairs(specvars_names) do
+ local name = name
name = name:trim()
if specvars_values[name] == nil then
local value = specvars[name]