[oe-commits] [openembedded-core] 65/72: recipetool: create: match *LICENSE* as a license file

git at git.openembedded.org git at git.openembedded.org
Tue Mar 8 11:32:01 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit d0705ff68fd5687ce52296f8f8555ee688c12210
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Tue Mar 8 18:36:02 2016 +1300

    recipetool: create: match *LICENSE* as a license file
    
    For example, this picks up a file named MIT-LICENSE.txt.
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/lib/recipetool/create.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index a77c191..def2eea 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -722,7 +722,7 @@ def guess_license(srctree):
     md5sums = get_license_md5sums(tinfoil.config_data)
 
     licenses = []
-    licspecs = ['LICENSE*', 'COPYING*', '*[Ll]icense*', 'LICENCE*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*']
+    licspecs = ['*LICEN[CS]E*', 'COPYING*', '*[Ll]icense*', 'LEGAL*', '[Ll]egal*', '*GPL*', 'README.lic*', 'COPYRIGHT*', '[Cc]opyright*']
     licfiles = []
     for root, dirs, files in os.walk(srctree):
         for fn in files:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list