diff options
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 76806b5195..330a5ff94a 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 | ||
100 | def 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 | |||
100 | def inherits(d, *classes): | 104 | def 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) |