]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
recipetool: Ignore *.go files while scanning for licenses
authorLukas Funke <lukas.funke@weidmueller.com>
Thu, 2 Nov 2023 15:53:12 +0000 (16:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Nov 2023 16:39:47 +0000 (16:39 +0000)
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/create.py

index 143bc63e9da9a5b43aae6990155aef58456abf8a..293198d1c8858b8e672dbbcc59af54328b052896 100644 (file)
@@ -1212,7 +1212,7 @@ def guess_license(srctree, d):
 
     licenses = []
     licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*', 'e[dp]l-v10']
-    skip_extensions = (".html", ".js", ".json", ".svg", ".ts")
+    skip_extensions = (".html", ".js", ".json", ".svg", ".ts", ".go")
     licfiles = []
     for root, dirs, files in os.walk(srctree):
         for fn in files: