summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-12-05 21:17:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-28 23:25:41 +0000
commitadcc017443f3e580a0246938f89a45e47d96b0f0 (patch)
tree276bc57c7b661ca3ba023b7f72c31f7489b55f0b /meta/classes/insane.bbclass
parent1ac2b6c82f4860a7081ef9b5adc7783e674d3a15 (diff)
downloadpoky-adcc017443f3e580a0246938f89a45e47d96b0f0.tar.gz
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>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 0564f9c2a4..723348fc8e 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -937,14 +937,13 @@ python do_package_qa () {
937 pkgdest = d.getVar('PKGDEST') 937 pkgdest = d.getVar('PKGDEST')
938 packages = set((d.getVar('PACKAGES') or '').split()) 938 packages = set((d.getVar('PACKAGES') or '').split())
939 939
940 cpath = oe.cachedpath.CachedPath()
941 global pkgfiles 940 global pkgfiles
942 pkgfiles = {} 941 pkgfiles = {}
943 for pkg in packages: 942 for pkg in packages:
944 pkgfiles[pkg] = [] 943 pkgfiles[pkg] = []
945 for walkroot, dirs, files in cpath.walk(pkgdest + "/" + pkg): 944 for walkroot, dirs, files in os.walk(os.path.join(pkgdest, pkg)):
946 for file in files: 945 for file in files:
947 pkgfiles[pkg].append(walkroot + os.sep + file) 946 pkgfiles[pkg].append(os.path.join(walkroot, file))
948 947
949 # no packages should be scanned 948 # no packages should be scanned
950 if not packages: 949 if not packages: