mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
Make the file not found error actually useable.
(Bitbake rev: 1cfcbee014478eb129ed382c13622317412b036e) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
85ca18f60a
commit
9d32ff0c87
@@ -81,9 +81,11 @@ def init(fn, data):
|
|||||||
|
|
||||||
def resolve_file(fn, d):
|
def resolve_file(fn, d):
|
||||||
if not os.path.isabs(fn):
|
if not os.path.isabs(fn):
|
||||||
fn = bb.utils.which(bb.data.getVar("BBPATH", d, 1), fn)
|
bbpath = bb.data.getVar("BBPATH", d, True)
|
||||||
if not fn:
|
newfn = bb.which(bbpath, fn)
|
||||||
raise IOError("file %s not found" % fn)
|
if not newfn:
|
||||||
|
raise IOError("file %s not found in %s" % (fn, bbpath))
|
||||||
|
fn = newfn
|
||||||
|
|
||||||
bb.msg.debug(2, bb.msg.domain.Parsing, "LOAD %s" % fn)
|
bb.msg.debug(2, bb.msg.domain.Parsing, "LOAD %s" % fn)
|
||||||
return fn
|
return fn
|
||||||
|
|||||||
Reference in New Issue
Block a user