mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
Stop using functions via 'bb' that were moved from there to other modules
(Bitbake rev: 03a6c26f8da226f442c3cab557e4733f7cd6eeac) 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
1569c1ac85
commit
6623d79ada
@@ -29,6 +29,7 @@ __all__ = [ 'ParseError', 'SkipPackage', 'cached_mtime', 'mark_dependency',
|
||||
handlers = []
|
||||
|
||||
import bb, os
|
||||
import bb.utils
|
||||
|
||||
class ParseError(Exception):
|
||||
"""Exception raised when parsing fails"""
|
||||
@@ -82,7 +83,7 @@ def init(fn, data):
|
||||
|
||||
def resolve_file(fn, d):
|
||||
if not os.path.isabs(fn):
|
||||
fn = bb.which(bb.data.getVar("BBPATH", d, 1), fn)
|
||||
fn = bb.utils.which(bb.data.getVar("BBPATH", d, 1), fn)
|
||||
if not fn:
|
||||
raise IOError("file %s not found" % fn)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user