Re: [viewvc-users] svndbadmin needs to be executed directly from withing its directroy

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4DF0270D.2010607__30204.7640238472$1307584282$gmane$org@collab.net>
[...]

> It looks like svndbadmin cannot pick up the config from viewvc.conf unless
> svndbadmin is executed from .../viewvc/bin. I'm guessing that svndbadmin is
> probably looking for ../conf/viewvc.conf as a relative path. There is
> nothing critical about this except that any script would need to "cd" to
> .../viewvc/bin and then run as ./svndbadmin <sub-command> $REPOAS-PATH. If
> this is the case then section 5 "To publish Subversion commits into the
> database:" of the INSTALL document should be updated to reflect this. For
> example, the post-commit script could have the following as a work-around:

I think this might be a problem with the distribution.  svndbadmin has a
global variable CONF_PATHNAME that is tweaked by the ViewVC install script
to point to the correct viewvc.conf location:

$ grep 'CONF_PATHNAME =' /usr/local/viewvc-1.2-dev/bin/svndbadmin
CONF_PATHNAME = r"/usr/local/viewvc-1.2-dev/viewvc.conf"
$

Package maintainers should be modifying that value in the same way they
would modify it in viewvc.cgi, query.cgi, standalone.py, and so on.

What does yours have?

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2760613

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.