diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-09-19 08:08:10 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-20 15:11:07 +0100 |
commit | 147774fc1ca9d1fd1afd5e2f255dccbfe464dabd (patch) | |
tree | 02b0f27785bbe3a4a8b175df7324e3cb6535ad69 /scripts/lib/recipetool/create.py | |
parent | 198c6d52c4b5813c1b0f365a51e9869e53917a07 (diff) | |
download | poky-147774fc1ca9d1fd1afd5e2f255dccbfe464dabd.tar.gz |
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>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-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 f8701d401e..7787d8e35f 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -872,7 +872,7 @@ def crunch_license(licfile): | |||
872 | 872 | ||
873 | # Note: these are carefully constructed! | 873 | # Note: these are carefully constructed! |
874 | license_title_re = re.compile('^\(?(#+ *)?(The )?.{1,10} [Ll]icen[sc]e( \(.{1,10}\))?\)?:?$') | 874 | license_title_re = re.compile('^\(?(#+ *)?(The )?.{1,10} [Ll]icen[sc]e( \(.{1,10}\))?\)?:?$') |
875 | license_statement_re = re.compile('^This (project|software) is( free software)? released under the .{1,10} [Ll]icen[sc]e:?$') | 875 | 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:?$') |
876 | copyright_re = re.compile('^(#+)? *Copyright .*$') | 876 | copyright_re = re.compile('^(#+)? *Copyright .*$') |
877 | 877 | ||
878 | crunched_md5sums = {} | 878 | crunched_md5sums = {} |