diff options
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/utils.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 1f84ba4b25..bedade292b 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py | |||
@@ -42,7 +42,15 @@ def version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d): | |||
42 | return falsevalue | 42 | return falsevalue |
43 | 43 | ||
44 | def both_contain(variable1, variable2, checkvalue, d): | 44 | def both_contain(variable1, variable2, checkvalue, d): |
45 | if d.getVar(variable1,1).find(checkvalue) != -1 and d.getVar(variable2,1).find(checkvalue) != -1: | 45 | val1 = d.getVar(variable1, True) |
46 | val2 = d.getVar(variable2, True) | ||
47 | val1 = set(val1.split()) | ||
48 | val2 = set(val2.split()) | ||
49 | if isinstance(checkvalue, basestring): | ||
50 | checkvalue = set(checkvalue.split()) | ||
51 | else: | ||
52 | checkvalue = set(checkvalue) | ||
53 | if checkvalue.issubset(val1) and checkvalue.issubset(val2): | ||
46 | return checkvalue | 54 | return checkvalue |
47 | else: | 55 | else: |
48 | return "" | 56 | return "" |