]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Avoid double suffix depchain packages
authorRichard Purdie <richard@openedhand.com>
Thu, 7 Feb 2008 20:20:34 +0000 (20:20 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 7 Feb 2008 20:20:34 +0000 (20:20 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3711 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/package.bbclass

index cc06dec8131daeb26b8ad95a513ac7c90e4e344d..55d9684683c9efe168aea39cb0546363cb18b5a8 100644 (file)
@@ -793,6 +793,10 @@ python package_depchains() {
                        if depend.find('-native') != -1 or depend.find('-cross') != -1 or depend.startswith('virtual/'):
                                #bb.note("Skipping %s" % depend)
                                continue
+                       if depend.endswith('-dev'):
+                               depend = depend.replace('-dev', '')
+                       if depend.endswith('-dbg'):
+                               depend = depend.replace('-dbg', '')
                        pkgname = getname(depend, suffix)
                        #bb.note("Adding %s for %s" % (pkgname, depend))
                        if not pkgname in rreclist:
@@ -807,6 +811,10 @@ python package_depchains() {
                rreclist = explode_deps(bb.data.getVar('RRECOMMENDS_' + pkg, d, 1) or bb.data.getVar('RRECOMMENDS', d, 1) or "")
 
                for depend in rdepends:
+                       if depend.endswith('-dev'):
+                               depend = depend.replace('-dev', '')
+                       if depend.endswith('-dbg'):
+                               depend = depend.replace('-dbg', '')
                        pkgname = getname(depend, suffix)
                        if not pkgname in rreclist:
                                rreclist.append(pkgname)