File: data-search-dirs-debian.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 (27 lines) | stat: -rw-r--r-- 1,039 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
From: Vincent Bernat <bernat@debian.org>
Date: Sat, 25 Jan 2025 07:21:29 +0100
Subject: search data in the appropriate directory This is a

Debian-specific modification. None of the other directories would
work.  The first one is not specific to taskjuggler. The other ones
are specific on the Ruby version and TaskJuggler version.
---
 lib/taskjuggler/AppConfig.rb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/taskjuggler/AppConfig.rb b/lib/taskjuggler/AppConfig.rb
index a320339..732be76 100644
--- a/lib/taskjuggler/AppConfig.rb
+++ b/lib/taskjuggler/AppConfig.rb
@@ -125,9 +125,8 @@ def AppConfig.dataSearchDirs(baseDir = 'data')
       end
     end
 
-    # Find the data dir relative to the source of this file. This should
-    # always work.
-    dirs << File.join(File.dirname(__FILE__), '..', '..', baseDir)
+    # For Debian package:
+    dirs << File.join('/usr/share/taskjuggler/', baseDir)
 
     # This hopefully works for all setups. Otherwise we have to add more
     # alternative pathes.