summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-05-21 23:51:48 +0000
committerChris Larson <clarson@kergoth.com>2004-05-21 23:51:48 +0000
commit8f7b888deb240e53729b2aa6f7c4a9ada356365b (patch)
tree0881375c8ff09382ccc12c59fdeb751068ead4e0 /bin
parent55d1075d81a0575cd3bde925e31c1626605ac1c7 (diff)
downloadbitbake-8f7b888deb240e53729b2aa6f7c4a9ada356365b.tar.gz
Dump a useful error message when our attempt to populate the 'A' environment variable fails due to a malformed url.
Diffstat (limited to 'bin')
-rw-r--r--bin/oe/parse/OEHandler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/oe/parse/OEHandler.py b/bin/oe/parse/OEHandler.py
index 9f5ab5157..6bf150636 100644
--- a/bin/oe/parse/OEHandler.py
+++ b/bin/oe/parse/OEHandler.py
@@ -10,6 +10,7 @@ import oe.fetch
from oe import debug, data, fetch, fatal
from oe.parse.ConfHandler import include, localpath, obtain, init
+from oe.parse import ParseError
__func_start_regexp__ = re.compile( r"(((?P<py>python)|(?P<fr>fakeroot))\s*)*(?P<func>[\w\-\+]+)?\s*\(\s*\)\s*{$" )
__inherit_regexp__ = re.compile( r"inherit\s+(.+)" )
@@ -338,6 +339,8 @@ def set_additional_vars(file, d, include):
fetch.init(src_uri.split())
except fetch.NoMethodError:
pass
+ except oe.MalformedUrl,e:
+ raise ParseError("Unable to generate local paths for SRC_URI due to malformed uri: %s" % e)
a += fetch.localpaths(d)
del fetch