# Also mark all packages as ALLOW_EMPTY
python () {
packages = d.getVar('PACKAGES', True).split()
- for pkg in packages:
- d.setVar("ALLOW_EMPTY_%s" % pkg, "1")
if d.getVar('PACKAGEGROUP_DISABLE_COMPLEMENTARY', True) != '1':
- # Add complementary packagegroups
- genpackages = []
- complementary_types = ['-dbg', '-dev']
+ types = ['', '-dbg', '-dev']
if bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d):
- complementary_types.append('-ptest')
- for pkg in packages:
- for postfix in complementary_types:
- genpackages.append(pkg+postfix)
- d.setVar("ALLOW_EMPTY_%s" % pkg+postfix, "1")
- d.setVar('PACKAGES', ' '.join(packages+genpackages))
+ types.append('-ptest')
+ packages = [pkg + suffix for pkg in packages
+ for suffix in types]
+ d.setVar('PACKAGES', ' '.join(packages))
+ for pkg in packages:
+ d.setVar('ALLOW_EMPTY_%s' % pkg, '1')
}
# We don't want to look at shared library dependencies for the