summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorChris Larson <kergoth@openedhand.com>2006-10-27 19:25:05 +0000
committerChris Larson <kergoth@openedhand.com>2006-10-27 19:25:05 +0000
commitd726bba0e0cf415fcf908e38b2335ff68b6f8f61 (patch)
treea9d4e295808ac089be9792dd342da094056028fc /meta/classes/package.bbclass
parent002f491523ed778f756367e5f27e13eac7c6fd6a (diff)
downloadpoky-d726bba0e0cf415fcf908e38b2335ff68b6f8f61.tar.gz
package.bbclass: depchains: don't -destructively- set the pkg's RRECOMMENDS.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@823 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 44db26ffbc..d56e8b51f8 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -808,7 +808,7 @@ python package_depchains() {
808 def pkg_addrrecs(pkg, base, func, d): 808 def pkg_addrrecs(pkg, base, func, d):
809 rdepends = explode_deps(bb.data.getVar('RDEPENDS_' + base, d, 1) or bb.data.getVar('RDEPENDS', d, 1) or "") 809 rdepends = explode_deps(bb.data.getVar('RDEPENDS_' + base, d, 1) or bb.data.getVar('RDEPENDS', d, 1) or "")
810 # bb.note('rdepends for %s is %s' % (base, rdepends)) 810 # bb.note('rdepends for %s is %s' % (base, rdepends))
811 rreclist = [] 811 rreclist = explode_deps(bb.data.getVar('RRECOMMENDS_' + pkg, d, 1) or bb.data.getVar('RRECOMMENDS', d, 1) or "")
812 812
813 for depend in rdepends: 813 for depend in rdepends:
814 split_depend = depend.split(' (') 814 split_depend = depend.split(' (')
@@ -824,8 +824,9 @@ python package_depchains() {
824 for postfix in postfixes: 824 for postfix in postfixes:
825 def func(list, name): 825 def func(list, name):
826 pkg = '%s%s' % (name, postfix) 826 pkg = '%s%s' % (name, postfix)
827 if packaged(pkg, d): 827 if not pkg in list:
828 list.append(pkg) 828 if packaged(pkg, d):
829 list.append(pkg)
829 830
830 base = pkg[:-len(postfix)] 831 base = pkg[:-len(postfix)]
831 if pkg.endswith(postfix): 832 if pkg.endswith(postfix):
@@ -835,8 +836,9 @@ python package_depchains() {
835 for prefix in prefixes: 836 for prefix in prefixes:
836 def func(list, name): 837 def func(list, name):
837 pkg = '%s%s' % (prefix, name) 838 pkg = '%s%s' % (prefix, name)
838 if packaged(pkg, d): 839 if not pkg in list:
839 list.append(pkg) 840 if packaged(pkg, d):
841 list.append(pkg)
840 842
841 base = pkg[len(prefix):] 843 base = pkg[len(prefix):]
842 if pkg.startswith(prefix): 844 if pkg.startswith(prefix):