[Sputnik-list] Permissions
Yuri Takhteyev
yuri at sims.berkeley.edu
Tue Feb 26 06:22:57 GMT+2 2008
Indeed it works! Nice!
I've been thinking of making it into a rock of it's own
("versium-svn") which would then specify a dependency on luasvn. Then
to install it one would just need to do "luarocks install versium-svn"
and luasvn would get installed automatically. What do you think?
Also, about the "Create a repository" step. Would it be possible to
wrap this into the module somehow? I.e., check if the repository
exists and if it doesn't create it? Alternatively, those four lines
could just be put into a small script that could be put into the bin
directory as a part of the installation, so that the first two steps
in the installation would be:
luarocks install versium-svn
./bin/lua5.1 ./bin/luasvn_init_repository.lua my_repos wiki-data
Oh, there is also a small problem: I can't create new nodes. :(
Sputnik ran but failed due to an unexpected error.
stack traceback:
...sputnik/rocks/sputnik/8.02.20-0/lua/sputnik/init.lua:451: in function 'err'
/home/yuri/sputnik/share/lua/5.1/coxpcall.lua:24: in function
(tail call): ?
(tail call): ?
(tail call): ?
...sputnik/rocks/sputnik/8.02.20-0/lua/sputnik/init.lua:454: in
function 'protected_run'
...sputnik/rocks/sputnik/8.02.20-0/lua/sputnik/init.lua:528: in
function 'cgilua_run'
sputnik.lua:11: in main chunk
I haven't had a chance to debug it, but I am guessing that somehow
node_exists() returns true and versium then tries to actually read the
file. But for files that are created programmatically (all the
initial pages), I can edit them successfully.
Thanks for the work!
> I tried to follow your instructions, assuming I have installed
> Sputnik using the script "sputnik_install_2008_02_16.sh".
Sorry for the confusing instructions, but I suppose they are moot now.
- yuri
--
http://www.freewisdom.org/en/pipa/albums/
More information about the Sputnik-list
mailing list