bitbake: bb/utils: fix contains_any()
authorRoss Burton <ross.burton@intel.com>
Wed, 11 Jun 2014 10:04:44 +0000 (11:04 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Jun 2014 16:47:59 +0000 (17:47 +0100)
commit2fa50be49fc5d0324ed2d7a977eec87196f4e90c
treeb1a217597fdc01b06a407744e71eb424422c8710
parentadf721cb6ffda43b2782c829eabac34e427654ab
bitbake: bb/utils: fix contains_any()

"set1 in set2" doesn't do what you'd expect, and if it did do a subset test
that's not the logic required by contains_any().

Instead get the intersection of checkvalues and val and check if the resulting
set is empty or not (by evaluating it in a boolean context), which tells us if
there are any elements in common.

Based on a patch by Valentin Popa <valentin.popa@intel.com>.

(Bitbake rev: 2e742c03e8dfdfa67899e7f5d579ed14bd87e139)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/utils.py