aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/oe/_types.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/oe/_types.py b/lib/oe/_types.py
index b36060ff47..b9eb2d2b86 100644
--- a/lib/oe/_types.py
+++ b/lib/oe/_types.py
@@ -82,6 +82,10 @@ def boolean(value):
return False
raise ValueError("Invalid boolean value '%s'" % value)
-def integer(value):
- """OpenEmbedded 'integer' type"""
- return int(value)
+def integer(value, numberbase=10):
+ """OpenEmbedded 'integer' type
+
+ Defaults to base 10, but this can be specified using the optional
+ 'numberbase' flag."""
+
+ return int(value, int(numberbase))