From a930d39787dd77e10dfa7b7297af5fa04ca731ea Mon Sep 17 00:00:00 2001 From: Stefan Herbrechtsmeier Date: Fri, 8 Oct 2021 09:48:26 +0200 Subject: recipetool: Skip common source files in guess_license Signed-off-by: Stefan Herbrechtsmeier Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- scripts/lib/recipetool/create.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index e88a4253da..83cf25d9b7 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) -- cgit 1.2.3-korg