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:
Francois Perrad 2021-04-14 11:57:19 +02:00 committed by Thomas Petazzoni
parent 2ff52ae939
commit d72152ad8e

View File

@ -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)