diff options
author | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-10-08 18:44:06 +0000 |
---|---|---|
committer | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-10-08 18:44:06 +0000 |
commit | 60a0f5c818a5319c47c07756f257ebbba16eaad1 (patch) | |
tree | d883beed78d622f21b2559363244e9f8fb703e6b | |
parent | cf8d8c295380dff46e4a25031762eae0c7ec3b61 (diff) | |
download | luarocks-60a0f5c818a5319c47c07756f257ebbba16eaad1.tar.gz luarocks-60a0f5c818a5319c47c07756f257ebbba16eaad1.tar.bz2 luarocks-60a0f5c818a5319c47c07756f257ebbba16eaad1.zip |
Retained luarocks.require
git-svn-id: http://luarocks.org/svn/luarocks/trunk@72 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
-rw-r--r-- | src/luarocks/loader.lua | 2 | ||||
-rw-r--r-- | src/luarocks/require.lua | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/luarocks/loader.lua b/src/luarocks/loader.lua index f50bddf2..02e46085 100644 --- a/src/luarocks/loader.lua +++ b/src/luarocks/loader.lua | |||
@@ -3,7 +3,7 @@ local global_env = _G | |||
3 | local package, require, assert, ipairs, pairs, os, print, table, type, next, unpack = | 3 | local package, require, assert, ipairs, pairs, os, print, table, type, next, unpack = |
4 | package, require, assert, ipairs, pairs, os, print, table, type, next, unpack | 4 | package, require, assert, ipairs, pairs, os, print, table, type, next, unpack |
5 | 5 | ||
6 | module("luarocks2") | 6 | module("luarocks.loader") |
7 | 7 | ||
8 | local path = require("luarocks.path") | 8 | local path = require("luarocks.path") |
9 | local manif_core = require("luarocks.manif_core") | 9 | local manif_core = require("luarocks.manif_core") |
diff --git a/src/luarocks/require.lua b/src/luarocks/require.lua new file mode 100644 index 00000000..653597f9 --- /dev/null +++ b/src/luarocks/require.lua | |||
@@ -0,0 +1,4 @@ | |||
1 | --- Retained for compatibility reasons only. Use luarocks.loader instead. | ||
2 | local require = require | ||
3 | module("luarocks.require") | ||
4 | require("luarocks.loader") | ||