From: Stefan Herbrechtsmeier Date: Fri, 8 Oct 2021 07:48:26 +0000 (+0200) Subject: recipetool: Skip common source files in guess_license X-Git-Tag: yocto-4.0~2083 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a930d39787dd77e10dfa7b7297af5fa04ca731ea;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git recipetool: Skip common source files in guess_license Signed-off-by: Stefan Herbrechtsmeier Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index e88a4253da8..83cf25d9b78 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -1114,6 +1114,8 @@ def guess_license(srctree, d): licfiles = [] for root, dirs, files in os.walk(srctree): for fn in files: + if fn.endswith(".html") or fn.endswith(".js") or fn.endswith(".json") or fn.endswith(".svg") or fn.endswith(".ts"): + continue for spec in licspecs: if fnmatch.fnmatch(fn, spec): fullpath = os.path.join(root, fn)