summaryrefslogtreecommitdiffstats
path: root/meta/classes/copyleft_compliance.bbclass
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2012-04-02 22:37:09 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-04 17:17:51 +0100
commit029f3c6dec94e6c71d8cdf8352092b1d855cd1f1 (patch)
treed32a7ab83b8785ff8ddc321f61cc887f44250415 /meta/classes/copyleft_compliance.bbclass
parent1dc560c9d21081bcb73ff1eac0070ea58b4880cd (diff)
downloadpoky-029f3c6dec94e6c71d8cdf8352092b1d855cd1f1.tar.gz
license.py: fix behaviour of copyleft_compliance
actually if a package has a license in its LICENSE variable which is not in the whitelist nor in the blacklist and even if an other license in this variable is in the whitelist, the package gets excluded and is not taken in account in the copyleft_compliance. This patch solves this by excluding a recipe _only_ if the LICENSE variable includes a pattern from the blacklist and including a recipe only if it includes a variable from the whitelist _and_ none from the blacklist. Example in busybox which has LICENSE="GPLv2 & BSD-4-Clause", with the actual behaviour (where he blacklist contains only CLOSED Proprietary) we get : DEBUG: copyleft: busybox-1.19.4 is excluded: recipe has excluded licenses: BSD-4-Clause which is not sane because busybox is covered by a copyleft license which is GPLv2 and should match the default whitelist which is GPL* LGPL*. (From OE-Core rev: 987d06447d2eacf2e01f08e29469c00fbb0ef1db) Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/copyleft_compliance.bbclass')
0 files changed, 0 insertions, 0 deletions