use os.files instead of os.match
@@ -110,8 +110,7 @@ function get_all_package_modules(target, modules, opt)
for name, package in pairs(target:pkgs()) do
package_modules = package_modules or {}
local modules_dir = path.join(package:installdir(), "modules", name)
- local meta_files = os.match(path.join(modules_dir, "**.meta-info"), false)
- if meta_files then
+ local meta_files = os.files(path.join(modules_dir, "**.meta-info"))
for _, file in ipairs(meta_files) do
local metadata = json.loadfile(file)
package_modules[metadata._VENDOR_extension.name] = {
@@ -120,7 +119,6 @@ function get_all_package_modules(target, modules, opt)
}
end
end
- end
return package_modules
end
