[latex3-commits] [latex3/l3build] main: Skip unknown engine(s) when saving (f976c43)

github at latex-project.org github at latex-project.org
Thu Feb 29 08:07:38 CET 2024


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

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

commit f976c438fb74964e5376935dce1efdd8c821b911
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Thu Feb 29 14:45:57 2024 +0800

    Skip unknown engine(s) when saving


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

f976c438fb74964e5376935dce1efdd8c821b911
 CHANGELOG.md      | 3 +++
 l3build-check.lua | 7 ++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index ea466df..dc6bb2a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Fixed
+- Skip unknown engines correctly in `l3build save`
+
 ## [2024-02-08]
 
 ### Changed
diff --git a/l3build-check.lua b/l3build-check.lua
index 8121871..bcf456d 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -1119,7 +1119,12 @@ function save(names)
       return errorlevel
     end
   end
-  local engines = options["engine"] or {stdengine}
+  local engines
+  if options["engine"] then
+    engines = checkengines -- sanitized by check_engines()
+  else
+    engines = {stdengine}
+  end
   if names == nil then
     print("Arguments are required for the save command")
     return 1





More information about the latex3-commits mailing list.