summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/layerindexlib/cooker.py
diff options
context:
space:
mode:
authorFrazer Clews <frazerleslieclews@gmail.com>2020-08-24 15:51:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-25 18:14:53 +0100
commitabc6f864b9c6fa9a47a218a8250e79dcfa367d4d (patch)
treee4dfa762398e1b2a8ae019e0039417be3e85d99c /bitbake/lib/layerindexlib/cooker.py
parentac3593f6ed8f2ffb0bb62df47220b598cc1781f6 (diff)
downloadpoky-abc6f864b9c6fa9a47a218a8250e79dcfa367d4d.tar.gz
bitbake: lib: fix most undefined code picked up by pylint
Correctly import, and inherit functions, and variables. Also fix some typos and remove some Python 2 code that isn't recognised. (Bitbake rev: b0c807be5c2170c9481c1a04d4c11972135d7dc5) Signed-off-by: Frazer Clews <frazerleslieclews@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/layerindexlib/cooker.py')
-rw-r--r--bitbake/lib/layerindexlib/cooker.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/layerindexlib/cooker.py b/bitbake/lib/layerindexlib/cooker.py
index 65b23d087f..21ec438a22 100644
--- a/bitbake/lib/layerindexlib/cooker.py
+++ b/bitbake/lib/layerindexlib/cooker.py
@@ -4,6 +4,7 @@
4# 4#
5 5
6import logging 6import logging
7import os
7 8
8from collections import defaultdict 9from collections import defaultdict
9 10
@@ -73,7 +74,7 @@ class CookerPlugin(layerindexlib.plugin.IndexPlugin):
73 d = self.layerindex.data 74 d = self.layerindex.data
74 75
75 if not branches: 76 if not branches:
76 raise LayerIndexFetchError("No branches specified for _load_bblayers!") 77 raise layerindexlib.LayerIndexFetchError("No branches specified for _load_bblayers!")
77 78
78 index = layerindexlib.LayerIndexObj() 79 index = layerindexlib.LayerIndexObj()
79 80
@@ -202,7 +203,7 @@ class CookerPlugin(layerindexlib.plugin.IndexPlugin):
202 try: 203 try:
203 depDict = bb.utils.explode_dep_versions2(deps) 204 depDict = bb.utils.explode_dep_versions2(deps)
204 except bb.utils.VersionStringException as vse: 205 except bb.utils.VersionStringException as vse:
205 bb.fatal('Error parsing LAYERDEPENDS_%s: %s' % (c, str(vse))) 206 bb.fatal('Error parsing LAYERDEPENDS_%s: %s' % (collection, str(vse)))
206 207
207 for dep, oplist in list(depDict.items()): 208 for dep, oplist in list(depDict.items()):
208 # We need to search ourselves, so use the _ version... 209 # We need to search ourselves, so use the _ version...
@@ -268,7 +269,7 @@ class CookerPlugin(layerindexlib.plugin.IndexPlugin):
268 269
269 layer = bb.utils.get_file_layer(realfn[0], self.config_data) 270 layer = bb.utils.get_file_layer(realfn[0], self.config_data)
270 271
271 depBranchId = collection_layerbranch[layer] 272 depBranchId = collection[layer]
272 273
273 recipeId += 1 274 recipeId += 1
274 recipe = layerindexlib.Recipe(index, None) 275 recipe = layerindexlib.Recipe(index, None)