summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-29 16:15:26 +0000
committerSteven Barth <steven@midlink.org>2008-06-29 16:15:26 +0000
commit66ec29f2437b813a5aaf9d246e255fcc660b30cc (patch)
treedbe99456fff22bdfecb904213a30d66984fa3842
parent50039c134e104632a7dfe10c9d39cf121aff9a0b (diff)
* libs/core: Moved ltn12 inside LuCI to avoid package conflicts with luasocket
-rw-r--r--libs/core/luasrc/ltn12.lua (renamed from libs/core/lua/ltn12.lua)2
-rw-r--r--libs/http/luasrc/http/protocol.lua2
-rw-r--r--libs/http/luasrc/http/protocol/filter.lua2
-rw-r--r--libs/httpd/luasrc/httpd/handler/file.lua2
-rw-r--r--libs/httpd/luasrc/httpd/handler/luci.lua2
-rw-r--r--libs/httpd/luasrc/httpd/module.lua4
-rw-r--r--libs/sgi-cgi/luasrc/sgi/cgi.lua2
-rw-r--r--libs/sgi-webuci/luasrc/sgi/webuci.lua2
-rw-r--r--libs/sgi-wsapi/luasrc/sgi/wsapi.lua2
-rw-r--r--libs/web/luasrc/http.lua2
10 files changed, 11 insertions, 11 deletions
diff --git a/libs/core/lua/ltn12.lua b/libs/core/luasrc/ltn12.lua
index 417da84d59..0868634d82 100644
--- a/libs/core/lua/ltn12.lua
+++ b/libs/core/luasrc/ltn12.lua
@@ -33,7 +33,7 @@ DEALINGS IN THE SOFTWARE.
local string = require("string")
local table = require("table")
local base = _G
-module("ltn12")
+module("luci.ltn12")
filter = {}
source = {}
diff --git a/libs/http/luasrc/http/protocol.lua b/libs/http/luasrc/http/protocol.lua
index 8fb5e6f2f1..ac58578892 100644
--- a/libs/http/luasrc/http/protocol.lua
+++ b/libs/http/luasrc/http/protocol.lua
@@ -15,7 +15,7 @@ $Id$
module("luci.http.protocol", package.seeall)
-require("ltn12")
+local ltn12 = require("luci.ltn12")
require("luci.http.protocol.filter")
HTTP_MAX_CONTENT = 1024*4 -- 4 kB maximum content size
diff --git a/libs/http/luasrc/http/protocol/filter.lua b/libs/http/luasrc/http/protocol/filter.lua
index 71263c3510..de106aae42 100644
--- a/libs/http/luasrc/http/protocol/filter.lua
+++ b/libs/http/luasrc/http/protocol/filter.lua
@@ -15,7 +15,7 @@ $Id$
module("luci.http.protocol.filter", package.seeall)
-require("ltn12")
+local ltn12 = require("luci.ltn12")
-- Factory that produces a filter which normalizes chunked transfer encoding
diff --git a/libs/httpd/luasrc/httpd/handler/file.lua b/libs/httpd/luasrc/httpd/handler/file.lua
index 3c92480477..80282631e5 100644
--- a/libs/httpd/luasrc/httpd/handler/file.lua
+++ b/libs/httpd/luasrc/httpd/handler/file.lua
@@ -21,7 +21,7 @@ require("luci.http.protocol.date")
require("luci.http.protocol.mime")
require("luci.http.protocol.conditionals")
require("luci.fs")
-require("ltn12")
+local ltn12 = require("luci.ltn12")
Simple = luci.util.class(luci.httpd.module.Handler)
Response = luci.httpd.module.Response
diff --git a/libs/httpd/luasrc/httpd/handler/luci.lua b/libs/httpd/luasrc/httpd/handler/luci.lua
index 2fcb9953ae..0937413935 100644
--- a/libs/httpd/luasrc/httpd/handler/luci.lua
+++ b/libs/httpd/luasrc/httpd/handler/luci.lua
@@ -18,7 +18,7 @@ module("luci.httpd.handler.luci", package.seeall)
require("luci.dispatcher")
require("luci.http")
require("luci.http.protocol.date")
-require("ltn12")
+local ltn12 = require("luci.ltn12")
Luci = luci.util.class(luci.httpd.module.Handler)
Response = luci.httpd.module.Response
diff --git a/libs/httpd/luasrc/httpd/module.lua b/libs/httpd/luasrc/httpd/module.lua
index 46cfa54ffd..d0e398f44e 100644
--- a/libs/httpd/luasrc/httpd/module.lua
+++ b/libs/httpd/luasrc/httpd/module.lua
@@ -14,7 +14,7 @@ $Id$
module("luci.httpd.module", package.seeall)
require("luci.util")
require("luci.http.protocol")
-require("ltn12")
+local ltn12 = require("luci.ltn12")
@@ -133,4 +133,4 @@ end
function Response.setstatus(self, status)
self.status = status
-end \ No newline at end of file
+end
diff --git a/libs/sgi-cgi/luasrc/sgi/cgi.lua b/libs/sgi-cgi/luasrc/sgi/cgi.lua
index 7f54e70218..427fa87331 100644
--- a/libs/sgi-cgi/luasrc/sgi/cgi.lua
+++ b/libs/sgi-cgi/luasrc/sgi/cgi.lua
@@ -24,7 +24,7 @@ limitations under the License.
]]--
module("luci.sgi.cgi", package.seeall)
-require("ltn12")
+local ltn12 = require("luci.ltn12")
require("luci.http")
require("luci.sys")
require("luci.dispatcher")
diff --git a/libs/sgi-webuci/luasrc/sgi/webuci.lua b/libs/sgi-webuci/luasrc/sgi/webuci.lua
index b9033f3702..3e60575e0b 100644
--- a/libs/sgi-webuci/luasrc/sgi/webuci.lua
+++ b/libs/sgi-webuci/luasrc/sgi/webuci.lua
@@ -24,7 +24,7 @@ limitations under the License.
]]--
module("luci.sgi.webuci", package.seeall)
-require("ltn12")
+local ltn12 = require("luci.ltn12")
require("luci.http")
require("luci.util")
require("luci.dispatcher")
diff --git a/libs/sgi-wsapi/luasrc/sgi/wsapi.lua b/libs/sgi-wsapi/luasrc/sgi/wsapi.lua
index 5b237cd7a5..ebae9fc277 100644
--- a/libs/sgi-wsapi/luasrc/sgi/wsapi.lua
+++ b/libs/sgi-wsapi/luasrc/sgi/wsapi.lua
@@ -24,7 +24,7 @@ limitations under the License.
]]--
module("luci.sgi.wsapi", package.seeall)
-require("ltn12")
+local ltn12 = require("luci.ltn12")
require("luci.http")
require("luci.dispatcher")
require("luci.http.protocol")
diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua
index f37d67343e..7a0a102325 100644
--- a/libs/web/luasrc/http.lua
+++ b/libs/web/luasrc/http.lua
@@ -25,7 +25,7 @@ limitations under the License.
]]--
module("luci.http", package.seeall)
-require("ltn12")
+local ltn12 = require("luci.ltn12")
require("luci.http.protocol")
require("luci.util")