]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: depchains: don't -destructively- set the pkg's RRECOMMENDS.
authorChris Larson <kergoth@openedhand.com>
Fri, 27 Oct 2006 19:25:05 +0000 (19:25 +0000)
committerChris Larson <kergoth@openedhand.com>
Fri, 27 Oct 2006 19:25:05 +0000 (19:25 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@823 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/package.bbclass

index 44db26ffbca0c0c571f62709c92b14a1c82443e3..d56e8b51f809cd6e42ffd0425cc09a6f1ea554a5 100644 (file)
@@ -808,7 +808,7 @@ python package_depchains() {
        def pkg_addrrecs(pkg, base, func, d):
                rdepends = explode_deps(bb.data.getVar('RDEPENDS_' + base, d, 1) or bb.data.getVar('RDEPENDS', d, 1) or "")
                # bb.note('rdepends for %s is %s' % (base, rdepends))
-               rreclist = []
+               rreclist = explode_deps(bb.data.getVar('RRECOMMENDS_' + pkg, d, 1) or bb.data.getVar('RRECOMMENDS', d, 1) or "")
 
                for depend in rdepends:
                        split_depend = depend.split(' (')
@@ -824,8 +824,9 @@ python package_depchains() {
                for postfix in postfixes:
                        def func(list, name):
                                pkg = '%s%s' % (name, postfix)
-                               if packaged(pkg, d):
-                                       list.append(pkg)
+                               if not pkg in list:
+                                       if packaged(pkg, d):
+                                               list.append(pkg)
 
                        base = pkg[:-len(postfix)]
                        if pkg.endswith(postfix):
@@ -835,8 +836,9 @@ python package_depchains() {
                for prefix in prefixes:
                        def func(list, name):
                                pkg = '%s%s' % (prefix, name)
-                               if packaged(pkg, d):
-                                       list.append(pkg)
+                               if not pkg in list:
+                                       if packaged(pkg, d):
+                                               list.append(pkg)
 
                        base = pkg[len(prefix):]
                        if pkg.startswith(prefix):