[latex3-commits] [git/LaTeX3-latex3-l3build] main: In l3build.lua, use options directly instead of opts. (cebe25c)

Marcel Fabian Krüger tex at 2krueger.de
Tue Dec 14 22:10:13 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/cebe25c13fb8ede89baf907a664b3a705032bfb7

>---------------------------------------------------------------

commit cebe25c13fb8ede89baf907a664b3a705032bfb7
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Tue Dec 14 22:10:13 2021 +0100

    In l3build.lua, use options directly instead of opts.


>---------------------------------------------------------------

cebe25c13fb8ede89baf907a664b3a705032bfb7
 l3build.lua | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index 1d8d58c..a0c6b55 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -136,11 +136,10 @@ end
 if #checkconfigs > 1 then
   if options["target"] == "check" then
     local errorlevel = 0
-    local opts = options
     local failed = { }
     for i = 1, #checkconfigs do
-      opts["config"] = {checkconfigs[i]}
-      errorlevel = call({"."}, "check", opts)
+      options["config"] = {checkconfigs[i]}
+      errorlevel = call({"."}, "check", options)
       if errorlevel ~= 0 then
         if options["halt-on-error"] then
           exit(1)
@@ -199,8 +198,8 @@ if #checkconfigs > 1 then
   elseif options["target"] == "clean" then
     local failure
     for i = 1, #checkconfigs do
-      opts["config"] = {checkconfigs[i]}
-      failure = 0 ~= call({"."}, "clean", opts) or failure
+      options["config"] = {checkconfigs[i]}
+      failure = 0 ~= call({"."}, "clean", options) or failure
     end
     exit(failure and 1 or 0)
   end





More information about the latex3-commits mailing list.