mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
base.bbclass: Remove unneeded imports
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4356 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -892,7 +892,7 @@ def has_subpkgdata(pkg, d):
|
||||
return os.access(get_subpkgedata_fn(pkg, d), os.R_OK)
|
||||
|
||||
def read_subpkgdata(pkg, d):
|
||||
import bb, os
|
||||
import bb
|
||||
return read_pkgdatafile(get_subpkgedata_fn(pkg, d))
|
||||
|
||||
def has_pkgdata(pn, d):
|
||||
@@ -901,7 +901,7 @@ def has_pkgdata(pn, d):
|
||||
return os.access(fn, os.R_OK)
|
||||
|
||||
def read_pkgdata(pn, d):
|
||||
import bb, os
|
||||
import bb
|
||||
fn = bb.data.expand('${PKGDATA_DIR}/%s' % pn, d)
|
||||
return read_pkgdatafile(fn)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user