diff options
Diffstat (limited to 'poky/meta/lib/oe/license.py')
-rw-r--r-- | poky/meta/lib/oe/license.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/poky/meta/lib/oe/license.py b/poky/meta/lib/oe/license.py index c1274a61de..665d32ecbb 100644 --- a/poky/meta/lib/oe/license.py +++ b/poky/meta/lib/oe/license.py @@ -10,14 +10,7 @@ from fnmatch import fnmatchcase as fnmatch def license_ok(license, dont_want_licenses): """ Return False if License exist in dont_want_licenses else True """ for dwl in dont_want_licenses: - # If you want to exclude license named generically 'X', we - # surely want to exclude 'X+' as well. In consequence, we - # will exclude a trailing '+' character from LICENSE in - # case INCOMPATIBLE_LICENSE is not a 'X+' license. - lic = license - if not re.search(r'\+$', dwl): - lic = re.sub(r'\+', '', license) - if fnmatch(lic, dwl): + if fnmatch(license, dwl): return False return True |