On Wed, Oct 5, 2011 at 7:14 AM, steve donovan <[email protected]> wrote: > On Wed, Oct 5, 2011 at 1:44 AM, Hisham <[email protected]> wrote: >> I did write a rockspec and apparently got it to work and included it >> in the sources, but self-upgrade is a feature that I (or anyone else, >> apparently) never gave much testing. > > It's well worth revisiting this, because it's useful for pushing the > relatively small changes that happen between versions.
> Re-installing > _is_ a bit of a pain; a common scenario is that Joe on Unix gets > luarocks from his OS repo and wants to get up to speed. We've discussed this in the past: overwriting modules installed by the package manager is a big no-no; but I guess one could then somewhat easily override the system's LuaRocks with a copy in their home tree. (Or would that be confusing?) > (And there's > no reason that it can't work as smoothly for Anna on Windows as well) LuaRocks has been having a hard time on Windows when trying to upgrade rocks that are in use (such that LuaSocket and LuaFileSystem). That's an open problem for which I haven't found an elegant solution yet. > But it means that some of us are going to have to take some pain to > get this working ;) Well, the starting point is this rockspec: https://raw.github.com/keplerproject/luarocks/master/rockspec It only copies Lua files, and does not rebuild site_config.lua; it assumes it is being used for an upgrade: which is sensible to think, since if LuaRocks is being used to install it, it means another copy of LuaRocks is already in the system. I know that's not always true: one might be installing it into a different tree, so in that case it's not an uprgade, but I wanted to start simple. -- -- Hisham http://hisham.hm/ - http://colorbleed.com.br/ ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
