base.bbclass: Add base_both_contains function for use in task files

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@561 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2006-07-26 22:17:08 +00:00
parent f059afd07b
commit 36a7962e74
1 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,13 @@ def base_contains(variable, checkvalue, truevalue, falsevalue, d):
else:
return falsevalue
def base_both_contain(variable1, variable2, checkvalue, d):
import bb
if bb.data.getVar(variable1,d,1).find(checkvalue) != -1 and bb.data.getVar(variable2,d,1).find(checkvalue) != -1:
return checkvalue
else:
return ""
DEPENDS_prepend="${@base_dep_prepend(d)} "
def base_set_filespath(path, d):