summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/luakit/files/luakit-2010.12.25-fix-deprecated.patch')
-rw-r--r--www-client/luakit/files/luakit-2010.12.25-fix-deprecated.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/www-client/luakit/files/luakit-2010.12.25-fix-deprecated.patch b/www-client/luakit/files/luakit-2010.12.25-fix-deprecated.patch
new file mode 100644
index 000000000000..71eba8942bfc
--- /dev/null
+++ b/www-client/luakit/files/luakit-2010.12.25-fix-deprecated.patch
@@ -0,0 +1,25 @@
+Change handling of "argument table" in `lousy/util.lua` from
+deprecated (Lua 5.0) to modern (5.1 and up) syntax.
+
+written by Stjujsckij Nickolaj
+
+https://bugs.gentoo.org/show_bug.cgi?id=354355
+https://github.com/mason-larobina/luakit/commit/99b1bb394beff0dd872dd822c930d412b98d00a9
+--- a/lib/lousy/util.lua
++++ b/lib/lousy/util.lua
+@@ -98,9 +98,9 @@ end
+ -- @return A new table containing all keys from the arguments.
+ function table.join(...)
+ local ret = {}
+- for i = 1, arg.n do
+- if arg[i] then
+- for k, v in pairs(arg[i]) do
++ for i, tbl in pairs({...}) do
++ if tbl then
++ for k, v in pairs(tbl) do
+ if type(k) == "number" then
+ rtable.insert(ret, v)
+ else
+--
+1.7.4.rc3
+