summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2021-10-08 09:48:26 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-14 11:48:45 +0100
commitf70715b54a86ea3cbeda6fee9f5abad2444c19f5 (patch)
tree95ac9cfd96787ff526b2995515ee8e3f5ba724e7 /scripts/lib/recipetool/create.py
parent17798d21e025bbd0f24f4f587efd385c5f6bc607 (diff)
downloadpoky-f70715b54a86ea3cbeda6fee9f5abad2444c19f5.tar.gz
recipetool: Skip common source files in guess_license
(From OE-Core rev: a930d39787dd77e10dfa7b7297af5fa04ca731ea) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py2
1 files changed, 2 insertions, 0 deletions
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):
1114 licfiles = [] 1114 licfiles = []
1115 for root, dirs, files in os.walk(srctree): 1115 for root, dirs, files in os.walk(srctree):
1116 for fn in files: 1116 for fn in files:
1117 if fn.endswith(".html") or fn.endswith(".js") or fn.endswith(".json") or fn.endswith(".svg") or fn.endswith(".ts"):
1118 continue
1117 for spec in licspecs: 1119 for spec in licspecs:
1118 if fnmatch.fnmatch(fn, spec): 1120 if fnmatch.fnmatch(fn, spec):
1119 fullpath = os.path.join(root, fn) 1121 fullpath = os.path.join(root, fn)