From ff81f5be6bc505a8597da1cd6b2ddf4e205eadf9 Mon Sep 17 00:00:00 2001 From: Martin Dietze Date: Thu, 19 Apr 2007 10:29:58 +0000 Subject: base.bbclass: fixed bug #2082 (Checksum doesn't expand "localpath" with "localdata") as proposed by bug reporter --- classes/base.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/base.bbclass b/classes/base.bbclass index d78bd3cec3..1dd3a488b3 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -41,7 +41,7 @@ def base_chk_file(parser, pn, pv, src_uri, localpath, data): # md5 and sha256 should be valid now if not os.path.exists(localpath): - bb.note("The locapath does not exist '%s'" % localpath) + bb.note("The localpath does not exist '%s'" % localpath) raise Exception("The path does not exist '%s'" % localpath) @@ -483,7 +483,7 @@ python base_do_fetch() { # Check each URI for url in src_uri.split(): - localpath = bb.fetch.localpath(url,localdata) + localpath = bb.data.expand(bb.fetch.localpath(url, localdata), localdata) (type,host,path,_,_,_) = bb.decodeurl(url) uri = "%s://%s%s" % (type,host,path) try: -- cgit v1.2.3