summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-06-13 14:16:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-16 17:57:30 +0100
commitdc73e3083c3c2449625955c9afce594794cbddfa (patch)
treed3a42f068e9d6d1ec6ad81d9d804878813364beb
parente9932fca23b71dacb3a82a1131db2b833d1c4a4b (diff)
downloadpoky-dc73e3083c3c2449625955c9afce594794cbddfa.tar.gz
oe/license_finder: skip .sh files when looking for licenses
Shell scripts are not licenses, so skip them. (From OE-Core rev: 0ce9ad80d3b90edc1d1e690763e8f3d9f0cd523d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/license_finder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/license_finder.py b/meta/lib/oe/license_finder.py
index 5b09059576..d5030c033e 100644
--- a/meta/lib/oe/license_finder.py
+++ b/meta/lib/oe/license_finder.py
@@ -193,7 +193,7 @@ def crunch_license(licfile):
193 193
194def find_license_files(srctree): 194def find_license_files(srctree):
195 licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*', 'e[dp]l-v10'] 195 licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*', 'e[dp]l-v10']
196 skip_extensions = (".html", ".js", ".json", ".svg", ".ts", ".go") 196 skip_extensions = (".html", ".js", ".json", ".svg", ".ts", ".go", ".sh")
197 licfiles = [] 197 licfiles = []
198 for root, dirs, files in os.walk(srctree): 198 for root, dirs, files in os.walk(srctree):
199 for fn in files: 199 for fn in files: