summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-03-09 17:48:50 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-09 17:00:29 +0000
commit3fd244b94f6eee7fc05799b64613e3fe68d2e8f4 (patch)
treec32577a631bd2cefd87fa721609bd08e8f53074a /scripts/lib/recipetool/create.py
parent2b6a35212dca1c6f6e85ac7be18f1ac70c7a8bd6 (diff)
downloadpoky-3fd244b94f6eee7fc05799b64613e3fe68d2e8f4.tar.gz
recipetool: create: match *LICENSE* as a license file
For example, this picks up a file named MIT-LICENSE.txt. (From OE-Core rev: 103b4d26b340cbdf70bf43906e293f3497671fdc) 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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index a77c1910db..def2eea9fa 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -722,7 +722,7 @@ def guess_license(srctree):
722 md5sums = get_license_md5sums(tinfoil.config_data) 722 md5sums = get_license_md5sums(tinfoil.config_data)
723 723
724 licenses = [] 724 licenses = []
725 licspecs = ['LICENSE*', 'COPYING*', '*[Ll]icense*', 'LICENCE*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*'] 725 licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*']
726 licfiles = [] 726 licfiles = []
727 for root, dirs, files in os.walk(srctree): 727 for root, dirs, files in os.walk(srctree):
728 for fn in files: 728 for fn in files: