picolisp: Update from 16.2.11 to 16.3.1
[termux-packages] / packages / luarocks / lua.lua.patch
CommitLineData
59f0d218
FF
1diff -u -r ../luarocks-2.1.2/src/luarocks/fs/lua.lua ./src/luarocks/fs/lua.lua
2--- ../luarocks-2.1.2/src/luarocks/fs/lua.lua 2014-01-10 20:03:04.000000000 +0100
3+++ ./src/luarocks/fs/lua.lua 2014-07-09 02:24:11.488380570 +0200
4@@ -74,7 +74,7 @@
5 assert(type(name) == "string")
6 name = dir.normalize(name)
7
8- local temp_dir = (os.getenv("TMP") or "/tmp") .. "/luarocks_" .. name:gsub(dir.separator, "_") .. "-" .. tostring(math.floor(math.random() * 10000))
9+ local temp_dir = (os.getenv("TMP") or "@TERMUX_PREFIX@/tmp") .. "/luarocks_" .. name:gsub(dir.separator, "_") .. "-" .. tostring(math.floor(math.random() * 10000))
10 local ok, err = fs.make_dir(temp_dir)
11 if ok then
12 return temp_dir