mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
Remove DISTRO_TYPE, replacing with IMAGE_FEATURES. Documentation is in local.conf.sample
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1053 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -41,12 +41,17 @@ def base_conditional(variable, checkvalue, truevalue, falsevalue, d):
|
||||
else:
|
||||
return falsevalue
|
||||
|
||||
def base_contains(variable, checkvalue, truevalue, falsevalue, d):
|
||||
import bb
|
||||
if bb.data.getVar(variable,d,1).find(checkvalue) != -1:
|
||||
return truevalue
|
||||
else:
|
||||
return falsevalue
|
||||
def base_contains(variable, checkvalues, truevalue, falsevalue, d):
|
||||
import bb
|
||||
matches = 0
|
||||
if type(checkvalues).__name__ == "str":
|
||||
checkvalues = [checkvalues]
|
||||
for value in checkvalues:
|
||||
if bb.data.getVar(variable,d,1).find(value) != -1:
|
||||
matches = matches + 1
|
||||
if matches == len(checkvalues):
|
||||
return truevalue
|
||||
return falsevalue
|
||||
|
||||
def base_both_contain(variable1, variable2, checkvalue, d):
|
||||
import bb
|
||||
|
||||
Reference in New Issue
Block a user