Package: tj3
Version: 3.6.0-2
Followup-For: Bug #836052

Dear Vincent,

Please find a git-formatted patch attached.

Incidently, the Vcs-Git URL in debain/control

https://alioth.debian.org/anonscm/git/collab-maint/tj3.git

fails when I try to clone from it (fatal: repository 
'https://alioth.debian.org/anonscm/git/collab-maint/tj3.git/' not found). Using

https://anonscm.debian.org/git/collab-maint/tj3.git

instead seems to work.

Thanks.

Christopher Hoskin
diff --git a/debian/patches/manual-path.patch b/debian/patches/manual-path.patch
new file mode 100644
index 0000000..68a5624
--- /dev/null
+++ b/debian/patches/manual-path.patch
@@ -0,0 +1,21 @@
+Description: Use Debian path for manual
+ 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
+Bug-Debian: 836052
+Forwarded: not-needed
+Author: Christopher Hoskin <christopher.hos...@gmail.com>
+Last-Update: 2016-08-31
+
+--- a/lib/taskjuggler/apps/Tj3Man.rb
++++ b/lib/taskjuggler/apps/Tj3Man.rb
+@@ -106,8 +106,7 @@
+     # 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)
diff --git a/debian/patches/series b/debian/patches/series
index f43594f..f714ea8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 dont-require-git.patch
 data-search-dirs-debian.patch
 reproducible-build.patch
+manual-path.patch
\ No newline at end of file

Reply via email to