recipetool: create: tweak license crunching
Filter out a plain "Licensed under the XXXX license" statement, as seen in the capnproto project (and no doubt others). (From OE-Core rev: ba4aa319fd49ee02ce2e30c2db0f3988c0e8833c) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
198c6d52c4
commit
147774fc1c
|
@ -872,7 +872,7 @@ def crunch_license(licfile):
|
|||
|
||||
# Note: these are carefully constructed!
|
||||
license_title_re = re.compile('^\(?(#+ *)?(The )?.{1,10} [Ll]icen[sc]e( \(.{1,10}\))?\)?:?$')
|
||||
license_statement_re = re.compile('^This (project|software) is( free software)? released under the .{1,10} [Ll]icen[sc]e:?$')
|
||||
license_statement_re = re.compile('^(This (project|software) is( free software)? (released|licen[sc]ed)|(Released|Licen[cs]ed)) under the .{1,10} [Ll]icen[sc]e:?$')
|
||||
copyright_re = re.compile('^(#+)? *Copyright .*$')
|
||||
|
||||
crunched_md5sums = {}
|
||||
|
|
Loading…
Reference in New Issue