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
|
if #licenses == 0 then
|
||||||
for i = 1, #files do
|
for i = 1, #files do
|
||||||
local v = files[i]
|
local v = files[i]
|
||||||
if v:match('^doc/LICENSE')
|
if v:match('^docs?/LICENSE')
|
||||||
or v:match('^doc/license')
|
or v:match('^docs?/license')
|
||||||
or v:match('^doc/us/license') then
|
or v:match('^doc/us/license') then
|
||||||
licenses[#licenses+1] = v
|
licenses[#licenses+1] = v
|
||||||
digest[v], err = get_digest(v)
|
digest[v], err = get_digest(v)
|
||||||
|
|||||||
Reference in New Issue
Block a user