generic-poky/meta/lib/oe
Eric Bénard 029f3c6dec 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>
2012-04-04 17:17:51 +01:00
..
tests oe.license: add license flattening code 2011-12-08 15:24:29 +00:00
__init__.py lib/oe: Import oe lib from OE.dev 2010-05-06 12:48:05 +01:00
buildhistory_analysis.py buildhistory_analysis: avoid printing PE/PV/PR more than once 2012-03-21 15:33:07 +00:00
classextend.py multilib: Abstract class extension code into classextend.py 2012-01-05 12:36:29 +00:00
classutils.py oe.classutils: add module 2011-06-28 13:55:43 +01:00
data.py meta: Replace bb.data.expand(xxx, d) -> d.expand(xxx) 2012-03-05 10:23:53 -08:00
distro_check.py distro_check: fix the fedora URL for rleases as they seem to have moved 2012-02-24 23:25:51 +00:00
license.py license.py: fix behaviour of copyleft_compliance 2012-04-04 17:17:51 +01:00
maketype.py Implement variable typing (sync from OE) 2011-05-20 17:34:22 +01:00
packagedata.py meta: Replace bb.data.expand(xxx, d) -> d.expand(xxx) 2012-03-05 10:23:53 -08:00
packagegroup.py oe.packagegroup: add code for package groups (sync from OE) 2011-05-20 19:07:51 +01:00
patch.py meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
path.py path.py: add make_relative_symlink method 2012-03-13 11:52:11 +00:00
process.py lib/oe/process.py: import from OE 2011-05-16 15:32:19 +01:00
prservice.py prservice: Added sanity check for prservice connection. 2012-03-08 12:16:29 -08:00
qa.py qa.py: Fix a typo when evaluating bitsize 2011-03-03 23:49:19 +00:00
sstatesig.py sstatesig: add SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS option to exclude well defined recipe->dependency 2012-02-26 10:56:45 +00:00
terminal.py lib/oe/terminal: add support for XFCE's terminal emulator 2011-11-01 14:51:37 +00:00
types.py Implement variable typing (sync from OE) 2011-05-20 17:34:22 +01:00
utils.py conf/bitbake.conf: add DISTRO_FEATURES_BACKFILL 2012-02-24 16:37:07 +00:00