summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/deb
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-05 17:15:02 +0800
committerGitHub <[email protected]>2024-09-05 17:15:02 +0800
commite9df84ad021c7c8ec020384e250ca5b95fe3e700 (patch)
tree3986286cf9b04a0340ca413c01ad242214957ea1 /xmake/plugins/pack/deb
parenta3f50282bfed783a402b7d97485820ca8ceb0691 (diff)
parentee4935050a6165e1da500731fb00f3b08265c266 (diff)
Merge pull request #5570 from xmake-io/cpfile
Improve to copy file
Diffstat (limited to 'xmake/plugins/pack/deb')
-rw-r--r--xmake/plugins/pack/deb/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua
index 076b88da3..8088d39bd 100644
--- a/xmake/plugins/pack/deb/main.lua
+++ b/xmake/plugins/pack/deb/main.lua
@@ -191,7 +191,7 @@ function _pack_deb(debuild, package)
local debiandir = path.join(sourcedir, "debian")
if not os.isdir(debiandir) then
local debiandir_template = package:get("specfile") or path.join(os.programdir(), "scripts", "xpack", "deb", "debian")
- os.cp(debiandir_template, debiandir)
+ os.cp(debiandir_template, debiandir, {writeable = true})
end
-- replace variables in specfile