package: check inherit instead of PN to decide if a recipe is a packagegroup
PATCH 1/1 package: check inherit instead of PN to decide if a recipe is a packagegroup
Signed-off-by Ross Burton <[email protected]>
--- meta/classes/package.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta/classes/package.bbclass +1 -2
@@ -1911,8 +1911,7 @@ python package_depchains() { for pkg in pkglibdeps: for k in pkglibdeps[pkg]: add_dep(pkglibdeplist, k) - # FIXME this should not look at PN once all task recipes inherit from task.bbclass - dbgdefaultdeps = ((d.getVar('DEPCHAIN_DBGDEFAULTDEPS', True) == '1') or (d.getVar('PN', True) or '').startswith('packagegroup-')) + dbgdefaultdeps = ((d.getVar('DEPCHAIN_DBGDEFAULTDEPS', True) == '1') or (bb.data.inherits_class('packagegroup', d))) for suffix in pkgs: for pkg in pkgs[suffix]:
Signature · 1 line
2.7.0