summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorChris Larson <clarson@mvista.com>2009-03-23 15:38:24 -0700
committerChris Larson <clarson@mvista.com>2009-03-23 15:38:24 -0700
commit850ea31d59620b24ccb541743459ebc348f23498 (patch)
tree1f5069d6e11a9c83c0401cac1a807189bc895849 /classes/base.bbclass
parentb45c90c4499e37d96e22637c1366227ef36d27be (diff)
base.bbclass: Abort early if localpath() was unable to find a local file for the url.
Signed-off-by: Chris Larson <clarson@mvista.com>
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index f39059ecc0..919d01d77b 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -794,7 +794,9 @@ python base_do_unpack() {
try:
local = bb.data.expand(bb.fetch.localpath(url, localdata), localdata)
except bb.MalformedUrl, e:
- raise FuncFailed('Unable to generate local path for malformed uri: %s' % e)
+ raise bb.build.FuncFailed('Unable to generate local path for malformed uri: %s' % e)
+ if not local:
+ raise bb.build.FuncFailed('Unable to locate local file for %s' % url)
local = os.path.realpath(local)
ret = oe_unpack_file(local, localdata, url)
if not ret: