mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
insane: don't use cachedpath
Unless cachedpath is used correctly then it's just a glorified clone of os.walk, but without any of the recent optimisations in os.walk. In this codepath there is no point to using cachedpath. (From OE-Core rev: 460222c54e4c65352c0687f2b6c70527cc9a2b4b) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1ac2b6c82f
commit
adcc017443
@@ -937,14 +937,13 @@ python do_package_qa () {
|
||||
pkgdest = d.getVar('PKGDEST')
|
||||
packages = set((d.getVar('PACKAGES') or '').split())
|
||||
|
||||
cpath = oe.cachedpath.CachedPath()
|
||||
global pkgfiles
|
||||
pkgfiles = {}
|
||||
for pkg in packages:
|
||||
pkgfiles[pkg] = []
|
||||
for walkroot, dirs, files in cpath.walk(pkgdest + "/" + pkg):
|
||||
for walkroot, dirs, files in os.walk(os.path.join(pkgdest, pkg)):
|
||||
for file in files:
|
||||
pkgfiles[pkg].append(walkroot + os.sep + file)
|
||||
pkgfiles[pkg].append(os.path.join(walkroot, file))
|
||||
|
||||
# no packages should be scanned
|
||||
if not packages:
|
||||
|
||||
Reference in New Issue
Block a user