From 0ce9ad80d3b90edc1d1e690763e8f3d9f0cd523d Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 13 Jun 2025 14:16:13 +0100 Subject: [PATCH] oe/license_finder: skip .sh files when looking for licenses Shell scripts are not licenses, so skip them. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oe/license_finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/license_finder.py b/meta/lib/oe/license_finder.py index 5b09059576e..d5030c033e7 100644 --- a/meta/lib/oe/license_finder.py +++ b/meta/lib/oe/license_finder.py @@ -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: -- 2.47.3