Skip to contentSkip to conversation

package/luarocks: improve detection of license files

Buildroot Thomas Petazzoni 1 participant 1 message Apr 19, 2021

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=d72152ad8eb98b2e359474e486eb062caafd827c
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

---
 package/luarocks/buildroot.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/luarocks/buildroot.lua +2 -2
index 67dac33aa2..2d160f02b6 100644
@@ -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)