]> code.ossystems Code Review - openembedded-core.git/commit
meta/lib/oe/utils.py: properly implement both_contain()
authorCristian Iorga <cristian.iorga@intel.com>
Wed, 25 Feb 2015 15:15:46 +0000 (17:15 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Mar 2015 16:00:14 +0000 (16:00 +0000)
commite7375f73bd8052d012e35d4ebaee09a55417581f
tree3087b2e0c2a98099d8885c283f0dee4f7ed2dccc
parentc195d70f35ea522854dcdd53aeae60eec6b7ad7e
meta/lib/oe/utils.py: properly implement both_contain()

oe.utils.both_contain() just does a find() on the value
rather than splitting the value and then looking in the
list of split items. The result is that if you add a
feature to MACHINE_FEATURES that itself has a substring
that matches one of the values looked for when building
COMBINED_FEATURES, you end up with an incomprehensible
error (here with "ext2i" in MACHINE_FEATURES):

ERROR: Nothing RPROVIDES 'packagegroup-base-ext2'
(but /home/balister/src/oe-core/oe-core/meta/recipes-core/
/packagegroups/packagegroup-base.bb RDEPENDS on or otherwise requires it)

Fix [YOCTO #6888].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/utils.py