aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-xml/0001-Fix-error-where-TAG-should-be-xml.TAG.patch
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-12-30 20:49:25 +0000
committerTed Trask <ttrask01@yahoo.com>2015-12-30 20:49:35 +0000
commitb0ee6cbe8ae634efc250b3ebc541a296ef0f0cd1 (patch)
tree07cc0efe57e5c5cf0adc626172f53f53c9523878 /main/lua-xml/0001-Fix-error-where-TAG-should-be-xml.TAG.patch
parentcd505c70dad8fd25587cc3cffccc24e21189b966 (diff)
downloadaports-b0ee6cbe8ae634efc250b3ebc541a296ef0f0cd1.tar.gz
aports-b0ee6cbe8ae634efc250b3ebc541a296ef0f0cd1.tar.bz2
aports-b0ee6cbe8ae634efc250b3ebc541a296ef0f0cd1.tar.xz
main/lua-xml: Fix TAG bug and bump pkgrel
Diffstat (limited to 'main/lua-xml/0001-Fix-error-where-TAG-should-be-xml.TAG.patch')
-rw-r--r--main/lua-xml/0001-Fix-error-where-TAG-should-be-xml.TAG.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/main/lua-xml/0001-Fix-error-where-TAG-should-be-xml.TAG.patch b/main/lua-xml/0001-Fix-error-where-TAG-should-be-xml.TAG.patch
new file mode 100644
index 0000000000..8b6763b910
--- /dev/null
+++ b/main/lua-xml/0001-Fix-error-where-TAG-should-be-xml.TAG.patch
@@ -0,0 +1,44 @@
+From 5c266ff6effbb1c89c3798b7332ed21685cf6acb Mon Sep 17 00:00:00 2001
+From: Ted Trask <ttrask01@yahoo.com>
+Date: Wed, 30 Dec 2015 20:36:52 +0000
+Subject: [PATCH] Fix error where TAG should be xml.TAG
+
+---
+ LuaXml.lua | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/LuaXml.lua b/LuaXml.lua
+index 8a10a2d..2ebc0ae 100644
+--- a/LuaXml.lua
++++ b/LuaXml.lua
+@@ -8,9 +8,9 @@ xml.TAG = 0
+ function xml.tag(var,tag)
+ if base.type(var)~="table" then return end
+ if base.type(tag)=="nil" then
+- return var[TAG]
++ return var[xml.TAG]
+ end
+- var[TAG] = tag
++ var[xml.TAG] = tag
+ end
+
+ -- creates a new LuaXML object either by setting the metatable of an existing Lua table or by setting its tag
+@@ -21,7 +21,7 @@ function xml.new(arg)
+ end
+ local var={}
+ base.setmetatable(var,{__index=xml, __tostring=xml.str})
+- if base.type(arg)=="string" then var[TAG]=arg end
++ if base.type(arg)=="string" then var[xml.TAG]=arg end
+ return var
+ end
+
+@@ -115,4 +115,4 @@ function xml.find(var, tag, attributeKey,attributeValue)
+ end
+ end
+
+-return xml
+\ No newline at end of file
++return xml
+--
+2.6.4
+