updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / lunatic-python / python.patch
bloba1c55f44189c097df3bf0bcb59a7b214f0423b04
1 diff -ru lunatic-python-1.0 lunatic-python-1.0-lua5.1Only in lunatic-python-1.0-lua5.1: build
2 diff -ru lunatic-python-1.0/python.lua lunatic-python-1.0-lua5.1/python.lua
3 --- lunatic-python-1.0/python.lua 2003-12-12 20:37:57.000000000 -0800
4 +++ lunatic-python-1.0-lua5.1/python.lua 2008-06-26 22:48:34.000000000 -0700
5 @@ -1,6 +1,6 @@
6 local path = os.getenv("LUA_SOPATH")
7 if path then
8 - func = loadlib(path.."/lua-python.so", "luaopen_python")
9 + func = package.loadlib(path.."/lua-python.so", "luaopen_python")
10 if func then
11 func()
12 return
13 @@ -10,7 +10,7 @@
14 local loaded = false
15 for i = 10, 2, -1 do
16 for j = 10, 2, -1 do
17 - func = loadlib(string.format(modmask, i, j), "luaopen_python")
18 + func = package.loadlib(string.format(modmask, i, j), "luaopen_python")
19 if func then
20 loaded = true
21 func()