termux-packages/packages/luarocks/lua.lua.patch

12 lines
532 B
Diff
Raw Normal View History

2019-03-10 16:48:18 +01:00
--- ./src/luarocks/fs/lua.lua.orig 2019-03-10 15:14:28.333129223 +0100
+++ ./src/luarocks/fs/lua.lua 2019-03-10 15:32:29.349788026 +0100
@@ -961,7 +961,7 @@
assert(type(name_pattern) == "string")
name_pattern = dir.normalize(name_pattern)
2015-06-13 01:03:31 +02:00
2019-03-10 16:48:18 +01:00
- return posix.mkdtemp((os.getenv("TMPDIR") or "/tmp") .. "/luarocks_" .. name_pattern:gsub("/", "_") .. "-XXXXXX")
+ return posix.mkdtemp((os.getenv("TMPDIR") or "@TERMUX_PREFIX@/tmp") .. "/luarocks_" .. name_pattern:gsub("/", "_") .. "-XXXXXX")
2016-09-26 15:21:21 +02:00
end
2019-03-10 16:48:18 +01:00
end -- if posix.mkdtemp