File: manual-path.patch

package info (click to toggle)
tj3 3.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,048 kB
  • sloc: ruby: 36,481; javascript: 1,113; sh: 19; makefile: 17
file content (29 lines) | stat: -rw-r--r-- 1,085 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Christopher Hoskin <christopher.hoskin@gmail.com>
Date: Sat, 25 Jan 2025 07:21:29 +0100
Subject: Use Debian path for manual

Bug-Debian: 836052
Forwarded: not-needed
Last-Update: 2016-08-31

Changes the path used by tj3man to find the user manual index.html file from
one relative to the binary to the absolute path /usr/share/doc/tj3/html/ used
by Debian
---
 lib/taskjuggler/apps/Tj3Man.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/taskjuggler/apps/Tj3Man.rb b/lib/taskjuggler/apps/Tj3Man.rb
index 861c21c..f7f2e60 100644
--- a/lib/taskjuggler/apps/Tj3Man.rb
+++ b/lib/taskjuggler/apps/Tj3Man.rb
@@ -108,8 +108,7 @@ def showManual(keyword = nil)
     # specified keyword.
     def startBrowser(keyword = nil)
       # Find the manual relative to this file.
-      manualDir = File.join(File.dirname(__FILE__), '..', '..', '..',
-                            'manual', 'html')
+      manualDir = '/usr/share/doc/tj3/html/'
       file = "#{manualDir}/#{keyword || 'index'}.html"
       # Make sure the file exists.
       unless File.exist?(file)