summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 76806b5..330a5ff 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -97,6 +97,10 @@ def param_bool(cfg, field, dflt = None):
97 return False 97 return False
98 raise ValueError("invalid value for boolean parameter '%s': '%s'" % (field, value)) 98 raise ValueError("invalid value for boolean parameter '%s': '%s'" % (field, value))
99 99
100def build_depends_string(depends, task):
101 """Append a taskname to a string of dependencies as used by the [depends] flag"""
102 return " ".join(dep + ":" + task for dep in depends.split())
103
100def inherits(d, *classes): 104def inherits(d, *classes):
101 """Return True if the metadata inherits any of the specified classes""" 105 """Return True if the metadata inherits any of the specified classes"""
102 return any(bb.data.inherits_class(cls, d) for cls in classes) 106 return any(bb.data.inherits_class(cls, d) for cls in classes)