diff options
author | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-05-26 21:00:16 +0000 |
---|---|---|
committer | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-05-26 21:00:16 +0000 |
commit | 6e519fd6b29411fd77d27134f01a79cff4d626b2 (patch) | |
tree | 3fdb8ff5f960d5bae31de6c233286838e4c98e5e /src | |
parent | 6ef0a2d8558515e7dd0e49e022aacd0aba56759d (diff) | |
download | luarocks-6e519fd6b29411fd77d27134f01a79cff4d626b2.tar.gz luarocks-6e519fd6b29411fd77d27134f01a79cff4d626b2.tar.bz2 luarocks-6e519fd6b29411fd77d27134f01a79cff4d626b2.zip |
fix native fs.find
git-svn-id: http://luarocks.org/svn/luarocks/trunk@24 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fs/lua.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index 80a4c2fd..d0685c07 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -1,7 +1,4 @@ | |||
1 | 1 | ||
2 | local assert, type, table, io, package, math, os, ipairs = | ||
3 | assert, type, table, io, package, math, os, ipairs | ||
4 | |||
5 | --- Native Lua implementation of filesystem and platform abstractions, | 2 | --- Native Lua implementation of filesystem and platform abstractions, |
6 | -- using LuaFileSystem, LZLib, MD5 and LuaCurl. | 3 | -- using LuaFileSystem, LZLib, MD5 and LuaCurl. |
7 | module("luarocks.fs.lua", package.seeall) | 4 | module("luarocks.fs.lua", package.seeall) |
@@ -13,6 +10,7 @@ local dir = require("luarocks.dir") | |||
13 | 10 | ||
14 | local zip_ok, zip = pcall(require, "luarocks.tools.zip") | 11 | local zip_ok, zip = pcall(require, "luarocks.tools.zip") |
15 | local lfs_ok, lfs = pcall(require, "lfs") | 12 | local lfs_ok, lfs = pcall(require, "lfs") |
13 | |||
16 | local curl_ok, curl = pcall(require, "luacurl") | 14 | local curl_ok, curl = pcall(require, "luacurl") |
17 | local md5_ok, md5 = pcall(require, "md5") | 15 | local md5_ok, md5 = pcall(require, "md5") |
18 | 16 | ||
@@ -330,7 +328,7 @@ function find(at) | |||
330 | return {} | 328 | return {} |
331 | end | 329 | end |
332 | local result = {} | 330 | local result = {} |
333 | recursive_find(lfs.currentdir(), "", result) | 331 | recursive_find(at, "", result) |
334 | return result | 332 | return result |
335 | end | 333 | end |
336 | 334 | ||