[08/28] classes/packagegroup: add ability to disable complementary packages

Submitted by Paul Eggleton on Sept. 3, 2012, 10:30 a.m.

Details

Message ID 12f1f03a5d78efa644a7dcc40a00c6e3e32d1214.1346668109.git.paul.eggleton@linux.intel.com
State New
Headers show

Commit Message

Paul Eggleton Sept. 3, 2012, 10:30 a.m.
This allows package group recipes that do not want the automatic
addition of complementary packages (e.g. for SDKs) to still inherit from
this class and thus it becomes very easy to determine if a recipe is a
package group which we need to do in certain circumstances.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/packagegroup.bbclass |    3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass
index aa9e0ac..2e07529 100644
--- a/meta/classes/packagegroup.bbclass
+++ b/meta/classes/packagegroup.bbclass
@@ -19,6 +19,9 @@  PACKAGE_ARCH = "all"
 # to the list. Their dependencies (RRECOMMENDS) are handled as usual
 # by package_depchains in a following step.
 python () {
+    if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) != '1':
+        return
+
     packages = d.getVar('PACKAGES', True).split()
     genpackages = []
     for pkg in packages:

Comments

Paul Eggleton Sept. 3, 2012, 1:25 p.m.
On Monday 03 September 2012 11:30:28 Paul Eggleton wrote:
> This allows package group recipes that do not want the automatic
> addition of complementary packages (e.g. for SDKs) to still inherit from
> this class and thus it becomes very easy to determine if a recipe is a
> package group which we need to do in certain circumstances.
> 
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
>  meta/classes/packagegroup.bbclass |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/classes/packagegroup.bbclass
> b/meta/classes/packagegroup.bbclass index aa9e0ac..2e07529 100644
> --- a/meta/classes/packagegroup.bbclass
> +++ b/meta/classes/packagegroup.bbclass
> @@ -19,6 +19,9 @@ PACKAGE_ARCH = "all"
>  # to the list. Their dependencies (RRECOMMENDS) are handled as usual
>  # by package_depchains in a following step.
>  python () {
> +    if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) != '1':

Er, that conditional is the wrong way around. Fixed on the branch.

Cheers,
Paul