> So either "luarocks install wsapi cvs" failed, or it didn't put things in
> the global repository. :-)

I've seen that if install --from=path/to/rocks-cvs fails, it tries to
take rock from normal repo. Perhaps it is that problem.

Have yet to prove that I did not imagined this.

> The git repository is obviously correct, and even
> the old repository at http://luarocks.luaforge.net/rocks-cvs has a rockspec
> pointing to the git repo.

>> > Perhaps you forgot to run luarocks install as root, and the
>> > correct module is under tour ~/.luarocks?

>> No. I've just deleted my ~/.luarocks to be sure.

> Well, you do have to run luarocks install with permissions to write on
> /usr/local, or LuaRocks will recreate a repository under your home.
> Do an experiment, do "luarocks remove --force" and see if
> /usr/local/share/lua/5.1/wsapi is still there.

$ sudo luarocks remove --force wsapi
Checking stability of dependencies on the absence of
wsapi cvs-3...

The following packages may be broken by this forced removal:
wsapi-fcgi cvs-2
wsapi-xavante cvs-1

Removing wsapi cvs-3...
Missing dependency for wsapi-fcgi cvs-2: wsapi == cvs
Missing dependency for wsapi-xavante cvs-1: wsapi == cvs

$ ls /usr/local/share/lua/5.1/wsapi
fastcgi.lua  xavante.lua

$ sudo luarocks install wsapi --from=http://luarocks.org/repositories/rocks-cvs
Installing http://luarocks.org/repositories/rocks-cvs/wsapi-cvs-3.rockspec...
Updating manifest for /usr/local/lib/luarocks/rocks

$ grep -c overwrite /usr/local/share/lua/5.1/wsapi/request.lua
0

$ grep -c overwrite
/usr/local/lib/luarocks/rocks/wsapi-fcgi/cvs-2/src/wsapi/request.lua
12

I've note that wsapi install did not said anything about Git checkout.
That is strange, usually it does... Perhaps rock got cached somewhere
and is not updated?

Alexander.

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to