mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-09 06:10:17 +03:00
package/luarocks: improve detection of license files
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
2ff52ae939
commit
d72152ad8e
@@ -380,8 +380,8 @@ function buildroot.command(args)
|
||||
if #licenses == 0 then
|
||||
for i = 1, #files do
|
||||
local v = files[i]
|
||||
if v:match('^doc/LICENSE')
|
||||
or v:match('^doc/license')
|
||||
if v:match('^docs?/LICENSE')
|
||||
or v:match('^docs?/license')
|
||||
or v:match('^doc/us/license') then
|
||||
licenses[#licenses+1] = v
|
||||
digest[v], err = get_digest(v)
|
||||
|
||||
Reference in New Issue
Block a user