diff options
| author | Lukas Funke <lukas.funke@weidmueller.com> | 2023-11-02 16:53:12 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-06 16:41:11 +0000 |
| commit | f7f304fa3eac4ac02b39497e6aa89217a55bd51d (patch) | |
| tree | 72355f848c4261d7129d5f4b14d8f804cf3f880c /scripts/lib | |
| parent | b2c07c250171f8c60c74cf7e682abc34556160a9 (diff) | |
| download | poky-f7f304fa3eac4ac02b39497e6aa89217a55bd51d.tar.gz | |
recipetool: Ignore *.go files while scanning for licenses
(From OE-Core rev: 1765acc8bdc08e392daa8b77add8b4ce1a9e70b6)
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
| -rw-r--r-- | scripts/lib/recipetool/create.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 143bc63e9d..293198d1c8 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
| @@ -1212,7 +1212,7 @@ def guess_license(srctree, d): | |||
| 1212 | 1212 | ||
| 1213 | licenses = [] | 1213 | licenses = [] |
| 1214 | licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*', 'e[dp]l-v10'] | 1214 | licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*', 'e[dp]l-v10'] |
| 1215 | skip_extensions = (".html", ".js", ".json", ".svg", ".ts") | 1215 | skip_extensions = (".html", ".js", ".json", ".svg", ".ts", ".go") |
| 1216 | licfiles = [] | 1216 | licfiles = [] |
| 1217 | for root, dirs, files in os.walk(srctree): | 1217 | for root, dirs, files in os.walk(srctree): |
| 1218 | for fn in files: | 1218 | for fn in files: |
