summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe')
-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 69f9384dc7..f6d4142c12 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -80,3 +80,7 @@ def param_bool(cfg, field, dflt = None):
80 elif strvalue in ('no', 'n', 'false', 'f', '0'): 80 elif strvalue in ('no', 'n', 'false', 'f', '0'):
81 return False 81 return False
82 raise ValueError("invalid value for boolean parameter '%s': '%s'" % (field, value)) 82 raise ValueError("invalid value for boolean parameter '%s': '%s'" % (field, value))
83
84def inherits(d, *classes):
85 """Return True if the metadata inherits any of the specified classes"""
86 return any(bb.data.inherits_class(cls, d) for cls in classes)