all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 6e6826d4941bdd683720290752f915426809aa60 1406 bytes (raw)
name: gnu/packages/patches/scilab-tbx_build_help.patch 	 # note: path name is non-authoritative(*)

 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
 
From c59d78c5a5c8c187450f157cf7f8480455e8e6a2 Mon Sep 17 00:00:00 2001
From: Nicolas Graves <ngraves@ngraves.fr>
Date: Wed, 3 Apr 2024 03:32:23 +0200
Subject: [PATCH] scilab: tbx_build_help: Allow for some flexibility under
 -nwni.

---
 .../modules_manager/macros/tbx_build_help.sci        | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/scilab/modules/modules_manager/macros/tbx_build_help.sci b/scilab/modules/modules_manager/macros/tbx_build_help.sci
index 7862e33a868..5593ee3dc04 100644
--- a/scilab/modules/modules_manager/macros/tbx_build_help.sci
+++ b/scilab/modules/modules_manager/macros/tbx_build_help.sci
@@ -58,12 +58,12 @@ function tbx_build_help(moduletitle, path)
 
     // Check scilab mode
     if and(getscilabmode() <> ["STD" "NW"]) then
-        error(msprintf(gettext("%s: documentation cannot be built in this scilab mode: %s.\n"),"tbx_build_help",getscilabmode()));
+        msprintf(gettext("%s: documentation cannot be built in this scilab mode: %s.\n"),"tbx_build_help",getscilabmode());
+    else
+        directory_language = basename(path);
+        default_language = "en_US"
+
+        xmltojar(path, moduletitle, directory_language, default_language);
     end
 
-    directory_language = basename(path);
-    default_language = "en_US"
-
-    xmltojar(path, moduletitle, directory_language, default_language);
-
 endfunction
-- 
2.41.0


debug log:

solving 6e6826d494 ...
found 6e6826d494 in https://yhetil.org/guix/20240403062528.5483-6-ngraves@ngraves.fr/

applying [1/1] https://yhetil.org/guix/20240403062528.5483-6-ngraves@ngraves.fr/
diff --git a/gnu/packages/patches/scilab-tbx_build_help.patch b/gnu/packages/patches/scilab-tbx_build_help.patch
new file mode 100644
index 0000000000..6e6826d494

1:22: trailing whitespace.
 
1:33: trailing whitespace.
 
1:40: trailing whitespace.
-- 
Checking patch gnu/packages/patches/scilab-tbx_build_help.patch...
1:42: new blank line at EOF.
+
Applied patch gnu/packages/patches/scilab-tbx_build_help.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 6e6826d4941bdd683720290752f915426809aa60	gnu/packages/patches/scilab-tbx_build_help.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.