]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oe/license_finder: skip .sh files when looking for licenses
authorRoss Burton <ross.burton@arm.com>
Fri, 13 Jun 2025 13:16:13 +0000 (14:16 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Jun 2025 16:56:27 +0000 (17:56 +0100)
Shell scripts are not licenses, so skip them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/license_finder.py

index 5b09059576e4502ef3441a81c055331cd6d8d245..d5030c033e7c097ba4c5937c76f8b00becf2c6fe 100644 (file)
@@ -193,7 +193,7 @@ def crunch_license(licfile):
 
 def find_license_files(srctree):
     licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*', 'e[dp]l-v10']
-    skip_extensions = (".html", ".js", ".json", ".svg", ".ts", ".go")
+    skip_extensions = (".html", ".js", ".json", ".svg", ".ts", ".go", ".sh")
     licfiles = []
     for root, dirs, files in os.walk(srctree):
         for fn in files: