summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-02-07 20:20:34 +0000
committerRichard Purdie <richard@openedhand.com>2008-02-07 20:20:34 +0000
commit8dac31d67803c59d950a02b5ce3a638731b86cdc (patch)
treec8aa9948964cedf54c86b54b056eeac687c51c07 /meta/classes
parent9f9ebe29be61ef497c47b4e0f7898618424f11b8 (diff)
downloadopenembedded-core-8dac31d67803c59d950a02b5ce3a638731b86cdc.tar.gz
openembedded-core-8dac31d67803c59d950a02b5ce3a638731b86cdc.tar.bz2
openembedded-core-8dac31d67803c59d950a02b5ce3a638731b86cdc.tar.xz
openembedded-core-8dac31d67803c59d950a02b5ce3a638731b86cdc.zip
package.bbclass: Avoid double suffix depchain packages
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3711 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index cc06dec81..55d968468 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -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)