Merge pull request #5730 from SirLynix/patch-18

Make target:filerule able to match package rules
This commit is contained in:
ruki 2024-10-18 09:18:14 +08:00 committed by GitHub
commit 86627f20f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1699,7 +1699,7 @@ function _instance:filerules(sourcefile)
if filerules then
override = filerules.override
for _, rulename in ipairs(table.wrap(filerules)) do
local r = target._project().rule(rulename) or rule.rule(rulename)
local r = target._project().rule(rulename) or rule.rule(rulename) or self:rule(rulename)
if r then
table.insert(rules, r)
end