From 49bad4aa01cec1c9912220293953471d6d458119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Fri, 8 Feb 2019 21:33:16 +0100 Subject: [PATCH] fs.chmod was removed in LuaRocks 3. Fix #63 Thanks to @drmargarido for the bug report and fixes. --- src/scripts/debian.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/debian.lua b/src/scripts/debian.lua index 24ddf8e..086fe5e 100644 --- a/src/scripts/debian.lua +++ b/src/scripts/debian.lua @@ -109,7 +109,9 @@ function s.script(project) "love '"..loveFileDeb:gsub("'", "\\'").."'\n", true ) - assert(fs.chmod(tempDir.."/usr/bin/"..project.package, "+x")) + -- FIXME: escape this path? + assert(fs.set_permissions(tempDir.."/usr/bin/"..project.package), + "exec", "all") -- 755 -- /usr/share/games/${PACKAGE}/${LOVE_FILE} copyFile(project.releaseDirectory.."/"..script.loveFile, loveFileDeb, true)