Package: viewvc
Version: 1.0.3-2
Followup-For: Bug #409864
My previous post only fixed the top-level view for me.
I don't really understand python very well.
Maybe there is something that I can do to fix my
configuration in a less invasive way.
The following is a quick hack that seems to fix things for
now:
--- viewvc.py.old 2007-02-09 10:20:51.000000000 -0700
+++ viewvc.py 2007-02-09 10:48:57.000000000 -0700
@@ -815,10 +815,13 @@
# see if the configuration specifies a template for this view
tname = vars(cfg.templates).get(view_name)
+ if tname and not os.path.isabs(tname):
+ tname = os.path.join( "/etc/viewvc/", tname )
+
# if there is no specific template definition for this view, look in
# the default location (relative to the configured template_dir)
if not tname:
- tname = os.path.join(cfg.options.template_dir, view_name + ".ezt")
+ tname = os.path.join("/etc/viewvc/templates", view_name + ".ezt")
# allow per-language template selection
tname = string.replace(tname, '%lang%', language)
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages viewvc depends on:
ii cvs 1:1.12.13-7 Concurrent Versions System
ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy
ii gawk 1:3.1.5.dfsg-4 GNU awk, a pattern scanning and pr
ii mime-support 3.39-1 MIME files 'mime.types' & 'mailcap
ii python 2.4.4-2 An interactive high-level object-o
ii python-subversion 1.4.2dfsg1-2 Python bindings for Subversion
ii python-support 0.5.6 automated rebuilding support for p
ii rcs 5.7-18 The GNU Revision Control System
ii subversion 1.4.2dfsg1-2 Advanced version control system
Versions of packages viewvc recommends:
ii apache2-mpm-prefork [httpd] 2.2.3-3.2 Traditional model for Apache HTTPD
ii enscript 1.6.4-11 Converts ASCII text to Postscript,
-- debconf information:
* viewvc/forbidden:
* viewvc/svnroots: svn-tevaugha: /usr/local/var/svn, svn-apue:
/usr/local/var/svn-apue, svn-cryo: /usr/local/var/svn-cryo, svn-old01:
/usr/local/var/svn-old01, svn-old02: /usr/local/var/svn-old02,
svn-tracker-issues: /usr/local/var/svn-tracker-issues, svn-uniqueness:
/usr/local/var/svn-uniqueness svn-tevaugha: /usr/local/var/svn, svn-apue:
/usr/local/var/svn-apue, svn-cryo: /usr/local/var/svn-cryo, svn-old01:
/usr/local/var/svn-old01, svn-old02: /usr/local/var/svn-old02,
svn-tracker-issues: /usr/local/var/svn-tracker-issues, svn-uniqueness:
/usr/local/var/svn-uniqueness
* viewvc/address: <a href="mailto:[EMAIL PROTECTED]">CVS Admin</a>
* viewvc/cvsroots: cvs: /usr/local/var/cvs
* viewvc/allow_tar: true
* viewvc/defaultroot:
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]