mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
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
This commit is contained in:
@@ -808,7 +808,7 @@ python package_depchains() {
|
|||||||
def pkg_addrrecs(pkg, base, func, d):
|
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 "")
|
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))
|
# 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:
|
for depend in rdepends:
|
||||||
split_depend = depend.split(' (')
|
split_depend = depend.split(' (')
|
||||||
@@ -824,8 +824,9 @@ python package_depchains() {
|
|||||||
for postfix in postfixes:
|
for postfix in postfixes:
|
||||||
def func(list, name):
|
def func(list, name):
|
||||||
pkg = '%s%s' % (name, postfix)
|
pkg = '%s%s' % (name, postfix)
|
||||||
if packaged(pkg, d):
|
if not pkg in list:
|
||||||
list.append(pkg)
|
if packaged(pkg, d):
|
||||||
|
list.append(pkg)
|
||||||
|
|
||||||
base = pkg[:-len(postfix)]
|
base = pkg[:-len(postfix)]
|
||||||
if pkg.endswith(postfix):
|
if pkg.endswith(postfix):
|
||||||
@@ -835,8 +836,9 @@ python package_depchains() {
|
|||||||
for prefix in prefixes:
|
for prefix in prefixes:
|
||||||
def func(list, name):
|
def func(list, name):
|
||||||
pkg = '%s%s' % (prefix, name)
|
pkg = '%s%s' % (prefix, name)
|
||||||
if packaged(pkg, d):
|
if not pkg in list:
|
||||||
list.append(pkg)
|
if packaged(pkg, d):
|
||||||
|
list.append(pkg)
|
||||||
|
|
||||||
base = pkg[len(prefix):]
|
base = pkg[len(prefix):]
|
||||||
if pkg.startswith(prefix):
|
if pkg.startswith(prefix):
|
||||||
|
|||||||
Reference in New Issue
Block a user