package/luarocks: improve detection of license files
authorFrancois Perrad <fperrad@gmail.com>
Wed, 14 Apr 2021 09:57:19 +0000 (11:57 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 19 Apr 2021 20:51:43 +0000 (22:51 +0200)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/luarocks/buildroot.lua

index 67dac33aa2b3172a5f6dea202313f39f9c7d169b..2d160f02b60d58c74ebab5faa625b092267acfde 100644 (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)