From: Ross Burton Date: Fri, 13 Jun 2025 13:16:13 +0000 (+0100) Subject: oe/license_finder: skip .sh files when looking for licenses X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ce9ad80d3b90edc1d1e690763e8f3d9f0cd523d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- 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): 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: