From: Francois Perrad Date: Wed, 14 Apr 2021 09:57:19 +0000 (+0200) Subject: package/luarocks: improve detection of license files X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d72152ad8eb98b2e359474e486eb062caafd827c;p=buildroot.git package/luarocks: improve detection of license files Signed-off-by: Francois Perrad Signed-off-by: Thomas Petazzoni --- 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)