Thanks hisham! > How are you calling 'luarocks make'? In any case, 'luarocks make' is > basically a frontend to build.build_rockspec(), so you could just do > something like:
I have basically taken the luarocks and luarocks-admin command scripts and embedded them in my app so I'm not running them from the command line but from within the main lua_State in my app. I'm trying to modify LuaRocks only when absolutely necessary, but sometimes it can't be avoided. For example, to populate the gui with data about the available rocks repositories, I need access to the data structures created (i.e. the tables of rocks generated by luarocks search). I also comment out most of the printing to stdout and the os.exit in the die function. > fs.change_dir(dir.dir_name(rockspec_path)) > build.build_rockspec(rockspec_path, false, true) > fs.pop_dir() > I'll give it a shot! wes ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
