summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 90090b2fe3..7ba1234578 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -53,6 +53,9 @@ def set_context(ctx):
53# Context used in better_exec, eval 53# Context used in better_exec, eval
54_context = clean_context() 54_context = clean_context()
55 55
56class VersionStringException(Exception):
57 """Exception raised when an invalid version specification is found"""
58
56def explode_version(s): 59def explode_version(s):
57 r = [] 60 r = []
58 alpha_regexp = re.compile('^([a-zA-Z]+)(.*)$') 61 alpha_regexp = re.compile('^([a-zA-Z]+)(.*)$')
@@ -188,6 +191,7 @@ def explode_dep_versions2(s):
188 i = i[1:] 191 i = i[1:]
189 else: 192 else:
190 # This is an unsupported case! 193 # This is an unsupported case!
194 raise VersionStringException('Invalid version specification in "(%s" - invalid or missing operator' % i)
191 lastcmp = (i or "") 195 lastcmp = (i or "")
192 i = "" 196 i = ""
193 i.strip() 197 i.strip()