Skip to contentSkip to conversation

package: check inherit instead of PN to decide if a recipe is a packagegroup

PATCH New Ross Burton 1 participant 1 message Feb 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package: check inherit instead of PN to decide if a recipe is a packagegroup

---
 meta/classes/package.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/classes/package.bbclass +1 -2
index 93b275c..ef80e50 100644
@@ -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