From aac03657ee2faeb6e3d50898a81f2e023c661b9d Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 15 Jan 2013 13:22:51 -0700 Subject: base.bbclass: improve the incompatible license logic a bit Handle the potential case where the recipe level LICENSE contains an incompatible license, but all of its emitted packages are in fact compatible. Without this adjustment, it would skip such a recipe. (From OE-Core rev: 9256361cf2e929004dcc5615b21fe3c46d9f7740) Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- meta/classes/base.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'meta') diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 627b9436c2..b427a5e335 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -552,9 +552,8 @@ python () { skipped_pkgs.append(pkg) else: unskipped_pkgs.append(pkg) - some_skipped = skipped_pkgs and unskipped_pkgs all_skipped = skipped_pkgs and not unskipped_pkgs - if some_skipped: + if unskipped_pkgs: for pkg in skipped_pkgs: bb.debug(1, "SKIPPING the package " + pkg + " at do_rootfs because it's " + recipe_license) d.setVar('LICENSE_EXCLUSION-' + pkg, 1) -- cgit v1.2.3-54-g00ecf