diff options
author | Christopher Larson <chris_larson@mentor.com> | 2012-01-09 15:02:34 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-17 14:52:59 +0000 |
commit | 7903433898b4683a1c09cc9a6a379421bc9bbd58 (patch) | |
tree | 30cf4e1b2bf03423466887f7b2f230c956caf27a /meta/recipes-extended/unzip | |
parent | 02101bbe08a5cd6e5eecb21f2095c15ebfe9287f (diff) | |
download | openembedded-core-7903433898b4683a1c09cc9a6a379421bc9bbd58.tar.gz openembedded-core-7903433898b4683a1c09cc9a6a379421bc9bbd58.tar.bz2 openembedded-core-7903433898b4683a1c09cc9a6a379421bc9bbd58.tar.xz openembedded-core-7903433898b4683a1c09cc9a6a379421bc9bbd58.zip |
oe.license: add is_included convenience function
Given a license string and whitelist and blacklist, determine if the
license string matches the whitelist and does not match the blacklist.
When encountering an OR, it prefers the side with the highest weight (more
included licenses). It then checks the inclusion of the flattened list of
licenses from there.
Returns a tuple holding the boolean state and a list of the applicable
licenses which were excluded (or None, if the state is True)
Examples:
is_included, excluded = oe.license.is_included(licensestr, ['GPL*', 'LGPL*'])
is_included, excluded = oe.license.is_included(licensestr, blacklist=['Proprietary', 'CLOSED'])
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Diffstat (limited to 'meta/recipes-extended/unzip')
0 files changed, 0 insertions, 0 deletions