aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c>2009-05-26 21:00:16 +0000
committerhisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c>2009-05-26 21:00:16 +0000
commit6e519fd6b29411fd77d27134f01a79cff4d626b2 (patch)
tree3fdb8ff5f960d5bae31de6c233286838e4c98e5e /src
parent6ef0a2d8558515e7dd0e49e022aacd0aba56759d (diff)
downloadluarocks-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.lua6
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
2local 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.
7module("luarocks.fs.lua", package.seeall) 4module("luarocks.fs.lua", package.seeall)
@@ -13,6 +10,7 @@ local dir = require("luarocks.dir")
13 10
14local zip_ok, zip = pcall(require, "luarocks.tools.zip") 11local zip_ok, zip = pcall(require, "luarocks.tools.zip")
15local lfs_ok, lfs = pcall(require, "lfs") 12local lfs_ok, lfs = pcall(require, "lfs")
13
16local curl_ok, curl = pcall(require, "luacurl") 14local curl_ok, curl = pcall(require, "luacurl")
17local md5_ok, md5 = pcall(require, "md5") 15local 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
335end 333end
336 334