hi, Luca Capello wrote: > Hello, > > please keep [EMAIL PROTECTED] outside the bug report.
yes, i meant to cc: the bug report in a mail to [EMAIL PROTECTED], not the other way round, i know they are busy people. > On Tue, 21 Aug 2007 14:34:23 +0200, fabian linzberger wrote: >>> - darcsweb > [...] >>> However, the included script to automate the configuration seems >>> to be broken (#438945 [1]). >> i think that the script actually works fine. the mistake causing the >> problem described in the bug is invoking the script using "sh" as >> the interpreter when "python" should be used. > > I think I should stop working on different things at the same time, > sorry, my fault. no problem. i did not find the time to look at as quickly as i should have on my part. > gismo:/tmp# python /usr/share/doc/darcsweb/examples/mkconfig.py \ > "http://darcs.debian.org/http/repos/" \ > " - darcs repository for " \ > utf8 /tmp/ > > gismo:/tmp# python /usr/share/doc/darcsweb/examples/mkconfig.py \ > "http://example.com/darcs/NAME" \ > "Repo for NAME" \ > latin1 ~/ > > gismo:/tmp#gismo:/tmp# > ===== > > At a first sight (and I don't want to dig more, as I said I'm not a > python expert), it seems that mkconfig.py absolutely wants some shell > variables. In this case, the script *is* broken, because the example > says: > > $ mkconf.py "http://example.com/darcs/NAME" "Repo for NAME" latin1 \\ > ~/devel/repos/ >> config.py > > Either the example or the script should be corrected. I prefer the > latter, i.e. having the possibility to use the script without shell > variables. i think what the python code does in check all directories *directly below ~/devel/repos/ (or ~/ in your case) and if any of them contain a _darcs subdir it assumes they are repositories and adds a snippet for them. so, no i don't think they need to be environment variables, but feeding bogus data doesn't work either (or any data except exactly the one it expects). input checking or nice error messages are not exactly the strong points of this script though... really just a quick hack by the darcsweb author it seems. i will not close this bug before i have added some more useful examples for the usage of this script, otherwise it really isn't too useful unless you know python. fabian -- fabian linzberger -- http://lefant.net/ -- http://debienna.at/ - do yourself a favour: use and support free software! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]