File: info-path.patch

package info (click to toggle)
octave-parallel 4.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,648 kB
  • sloc: ansic: 24,011; cpp: 6,848; sh: 4,476; makefile: 297; perl: 170; xml: 22
file content (37 lines) | stat: -rw-r--r-- 1,316 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
Description: Use the correct path for the info file
 This is a Debian-specific patch.
Author: Rafael Laboissiere <rafael@debian.org>
Forwarded: not-needed
Last-Update: 2023-09-16

--- octave-parallel-4.0.2.orig/inst/parallel_doc.m
+++ octave-parallel-4.0.2/inst/parallel_doc.m
@@ -34,27 +34,7 @@ function parallel_doc (keyword)
   ## locate installed documentation
   persistent infopath = "";
   if (isempty (infopath))
-    [local_list, global_list] = pkg ("list");
-    if (! isempty (local_list)
-        && ! isempty (idx = ...
-                   find (strcmp ("parallel",
-                                 {structcat(1, local_list{:}).name}),
-                         1)))
-      idir = local_list{idx}.dir;
-    elseif (! isempty (global_list)
-            && ! isempty (idx = ...
-                       find (strcmp ("parallel",
-                                     {structcat(1, global_list{:}).name}),
-                             1)))
-      idir = global_list{idx}.dir;
-    else
-      error ("no installed parallel package found");
-    endif
-    infopath = fullfile (idir, "doc/", "parallel.info");
-    ## allow for .gz
-    if (! exist (infopath, "file"))
-      infopath = strcat (infopath, ".gz");
-    endif
+    infopath = "/usr/share/info/parallel.info.gz";
   endif
 
   ## display info