diff options
-rw-r--r-- | meta/classes/packagegroup.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass index 92e0bbe9de..d56248f2de 100644 --- a/meta/classes/packagegroup.bbclass +++ b/meta/classes/packagegroup.bbclass @@ -27,8 +27,11 @@ python () { if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) != '1': # Add complementary packagegroups genpackages = [] + complementary_types = ['-dbg', '-dev'] + if bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d): + complementary_types.append('-ptest') for pkg in packages: - for postfix in ['-dbg', '-dev', '-ptest']: + for postfix in complementary_types: genpackages.append(pkg+postfix) d.setVar("ALLOW_EMPTY_%s" % pkg+postfix, "1") d.setVar('PACKAGES', ' '.join(packages+genpackages)) |