summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/recipetool/create.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 3b58d6fa82..5a267fb57c 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -1188,10 +1188,11 @@ def guess_license(srctree, d):
1188 1188
1189 licenses = [] 1189 licenses = []
1190 licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*', 'e[dp]l-v10'] 1190 licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*', 'e[dp]l-v10']
1191 skip_extensions = (".html", ".js", ".json", ".svg", ".ts")
1191 licfiles = [] 1192 licfiles = []
1192 for root, dirs, files in os.walk(srctree): 1193 for root, dirs, files in os.walk(srctree):
1193 for fn in files: 1194 for fn in files:
1194 if fn.endswith(".html") or fn.endswith(".js") or fn.endswith(".json") or fn.endswith(".svg") or fn.endswith(".ts"): 1195 if fn.endswith(skip_extensions):
1195 continue 1196 continue
1196 for spec in licspecs: 1197 for spec in licspecs:
1197 if fnmatch.fnmatch(fn, spec): 1198 if fnmatch.fnmatch(fn, spec):