diff options
| -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 | ||
