summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/utils.py')
-rw-r--r--meta/lib/oe/utils.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 643ab78df7..1897c5faea 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -86,17 +86,6 @@ def str_filter_out(f, str, d):
86 from re import match 86 from re import match
87 return " ".join([x for x in str.split() if not match(f, x, 0)]) 87 return " ".join([x for x in str.split() if not match(f, x, 0)])
88 88
89def param_bool(cfg, field, dflt = None):
90 """Lookup <field> in <cfg> map and convert it to a boolean; take
91 <dflt> when this <field> does not exist"""
92 value = cfg.get(field, dflt)
93 strvalue = str(value).lower()
94 if strvalue in ('yes', 'y', 'true', 't', '1'):
95 return True
96 elif strvalue in ('no', 'n', 'false', 'f', '0'):
97 return False
98 raise ValueError("invalid value for boolean parameter '%s': '%s'" % (field, value))
99
100def build_depends_string(depends, task): 89def build_depends_string(depends, task):
101 """Append a taskname to a string of dependencies as used by the [depends] flag""" 90 """Append a taskname to a string of dependencies as used by the [depends] flag"""
102 return " ".join(dep + ":" + task for dep in depends.split()) 91 return " ".join(dep + ":" + task for dep in depends.split())