Hello, please keep [EMAIL PROTECTED] outside the bug report.
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. > $ cd /tmp/ > $ mkdir -p foogroup/barrepo > $ cd foogroup/barrepo > $ darcs init > $ cd /tmp/ > $ export GROUP=foogroup REPO=barrepo > $ python /usr/share/doc/darcsweb/examples/mkconfig.py > "http://darcs.debian.org/http/repos/${GROUP}/${REPO}/" "${GROUP}s - > darcs repository for ${REPO}" latin1 /tmp/${GROUP}/ >>config.py > $ cat config.py > > class barrepo: > reponame = 'barrepo' > repodesc = 'foogroups - darcs repository for barrepo' > repodir = '/tmp/foogroup/barrepo' > repourl = 'http://darcs.debian.org/http/repos/foogroup/barrepo/' > repoencoding = 'latin1' While with your example works (and this is what we need for darcs.d.o, i.e. variables substituted), I still have no output with my test case: ===== gismo:/home/luca# cd /tmp/ gismo:/tmp# mkdir -p foogroup/barrepo gismo:/tmp# cd foogroup/barrepo/ gismo:/tmp/foogroup/barrepo# darcs init gismo:/tmp/foogroup/barrepo# cd /tmp/ gismo:/tmp# export GROUP=foogroup REPO=barrepo gismo:/tmp# python /usr/share/doc/darcsweb/examples/mkconfig.py \ "http://darcs.debian.org/http/repos/${GROUP}/${REPO}/" \ "${GROUP}s - darcs repository for ${REPO}" \ latin1 /tmp/${GROUP}/ >>config.py gismo:/tmp# cat config.py class barrepo: reponame = 'barrepo' repodesc = 'foogroups - darcs repository for barrepo' repodir = '/tmp/foogroup/barrepo' repourl = 'http://darcs.debian.org/http/repos/foogroup/barrepo/' repoencoding = 'latin1' 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. Thx, bye, Gismo / Luca -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]