viewvc.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Index: lib/viewcvs.py
  2. --- lib/viewcvs.py.orig 2005-08-17 22:45:14.000000000 +0200
  3. +++ lib/viewcvs.py 2006-01-10 06:18:59.000000000 +0100
  4. @@ -479,7 +479,7 @@
  5. def markup_stream_enscript(lang, fp):
  6. sys.stdout.flush()
  7. enscript = popen.pipe_cmds([(os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')),
  8. - '--color', '-W', 'html', '-E' + lang, '-o',
  9. + '--color', '--language=html', '-E' + lang, '-o',
  10. '-', '-'),
  11. ('sed', '-n', '/^<PRE>$/,/<\\/PRE>$/p')])
  12. Index: viewcvs-install
  13. --- viewcvs-install.orig 2001-12-21 12:59:45.000000000 +0100
  14. +++ viewcvs-install 2006-01-10 06:17:05.000000000 +0100
  15. @@ -52,6 +52,7 @@
  16. ## installer defaults
  17. ROOT_DIR = "/usr/local/viewcvs-" + version
  18. +RPM_BUILD_ROOT = "@RPM_BUILD_ROOT@"
  19. ## list of files for installation
  20. @@ -75,7 +75,7 @@
  21. ("lib/PyFontify.py", "lib/PyFontify.py", 0644, 0, 0, 1),
  22. ("lib/blame.py", "lib/blame.py", 0644, 0, 0, 1),
  23. ("lib/compat.py", "lib/compat.py", 0644, 0, 0, 1),
  24. - ("lib/config.py", "lib/config.py", 0644, 0, 0, 1),
  25. + ("lib/config.py", "lib/config.py", 0644, 1, 0, 1),
  26. ("lib/cvsdb.py", "lib/cvsdb.py", 0644, 1, 0, 1),
  27. ("lib/dbi.py", "lib/dbi.py", 0644, 0, 0, 1),
  28. ("lib/debug.py", "lib/debug.py", 0644, 0, 0, 1),
  29. @@ -159,6 +160,8 @@
  30. def InstallFile(src_path, dest_path, mode, set_python_paths, prompt_replace,
  31. compile_it):
  32. dest_path = os.path.join(ROOT_DIR, dest_path)
  33. + dest_path = "." + dest_path
  34. + dest_path = os.path.join(RPM_BUILD_ROOT, dest_path)
  35. if prompt_replace and os.path.exists(dest_path):
  36. # Collect ndiff output from ndiff