diff options
| author | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-06-27 21:21:18 +0000 |
|---|---|---|
| committer | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-06-27 21:21:18 +0000 |
| commit | 00b26dedf60c1c8fcb40f2257557ae42b568dbcc (patch) | |
| tree | 49570129b18d235e7e3e84cb34eac227ec59a6b9 /src | |
| parent | e98dc61d71dced7929e6012e31905925d0eaaa91 (diff) | |
| download | luarocks-00b26dedf60c1c8fcb40f2257557ae42b568dbcc.tar.gz luarocks-00b26dedf60c1c8fcb40f2257557ae42b568dbcc.tar.bz2 luarocks-00b26dedf60c1c8fcb40f2257557ae42b568dbcc.zip | |
fix find
git-svn-id: http://luarocks.org/svn/luarocks/trunk@30 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/fs/lua.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index d0685c07..16af8ab1 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
| @@ -307,8 +307,9 @@ local function recursive_find(cwd, prefix, result) | |||
| 307 | if file ~= "." and file ~= ".." then | 307 | if file ~= "." and file ~= ".." then |
| 308 | local item = prefix .. file | 308 | local item = prefix .. file |
| 309 | table.insert(result, item) | 309 | table.insert(result, item) |
| 310 | if lfs.attributes(item, "mode") == "directory" then | 310 | local pathname = dir.path(cwd, file) |
| 311 | recursive_find(item, item..dir_separator, result) | 311 | if lfs.attributes(pathname, "mode") == "directory" then |
| 312 | recursive_find(pathname, item..dir_separator, result) | ||
| 312 | end | 313 | end |
| 313 | end | 314 | end |
| 314 | end | 315 | end |
