From d72152ad8eb98b2e359474e486eb062caafd827c Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 14 Apr 2021 11:57:19 +0200 Subject: [PATCH] package/luarocks: improve detection of license files Signed-off-by: Francois Perrad Signed-off-by: Thomas Petazzoni --- package/luarocks/buildroot.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/luarocks/buildroot.lua b/package/luarocks/buildroot.lua index 67dac33aa2..2d160f02b6 100644 --- a/package/luarocks/buildroot.lua +++ b/package/luarocks/buildroot.lua @@ -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) -- 2.30.2