Skip to content

Commit

Permalink
Skip dirs without build.liua file in listmodules()
Browse files Browse the repository at this point in the history
See #369.
  • Loading branch information
josephwright committed Jun 28, 2024
1 parent 613089d commit 81e4f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l3build-stdmain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function listmodules()
if entry ~= "." and entry ~= ".." then
local attr = lfs.attributes(entry)
assert(type(attr) == "table")
if attr.mode == "directory" then
if attr.mode == "directory" and fileexists(entry .."/" .."build.lua") then
if not exclmodules[entry] then
insert(modules, entry)
end
Expand Down

0 comments on commit 81e4f71

Please sign in to comment.