LuaRocks will automatically the Lua versions if the proper Lua modules
are available; from the beggining of fs/lua.lua:

local socket_ok, http = pcall(require, "socket.http")
local _, ftp = pcall(require, "socket.ftp")
local zip_ok, lrzip = pcall(require, "luarocks.tools.zip")
local unzip_ok, luazip = pcall(require, "zip"); _G.zip = nil
local lfs_ok, lfs = pcall(require, "lfs")
local md5_ok, md5 = pcall(require, "md5")
local posix_ok, posix = pcall(require, "posix")

LuaSocket, LuaZip, LFS, md5.

--
Fabio Mascarenhas



On Tue, Jul 12, 2011 at 1:36 AM, Wesley Smith <[email protected]> wrote:
> I'm working on an in app gui for LuaRocks and need to remove a couple
> of dependencies on command-line tools that don't exist on a default
> OSX install.  These are wget and md5sum.  From what I can tell, if I
> use the fs.lua module instead of fs.unix, LuaRocks will try to use the
> lua md5 module.  Is this all I need to do to remove the shell md5sum
> dependency?  How do I tell LuaRocks to use the fs.lua module instead
> of fs.unix?
>
> thanks,
> wes
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Luarocks-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luarocks-developers
>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to