Skip to content

Commit

Permalink
Skip unknown engine(s) when saving
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi authored and josephwright committed Feb 29, 2024
1 parent e71f861 commit f976c43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion l3build-check.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f976c43

Please sign in to comment.