mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
bitbake: data_smart: Don't pass unneeded datastore
The datastore is already available to this function internally so don't also try and pass the datastore as a parameter. This is clearly broken API when you look at the existing calls to it. This then doesn't break the planned tinfoil data connector changes. (Bitbake rev: af1654498ee5b47368a41dad2d2b7b6abc19ff15) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c0e79ee2e9
commit
89705a60f3
|
|
@ -338,11 +338,12 @@ class VariableHistory(object):
|
|||
lines.append(line)
|
||||
return lines
|
||||
|
||||
def get_variable_items_files(self, var, d):
|
||||
def get_variable_items_files(self, var):
|
||||
"""
|
||||
Use variable history to map items added to a list variable and
|
||||
the files in which they were added.
|
||||
"""
|
||||
d = self.dataroot
|
||||
history = self.variable(var)
|
||||
finalitems = (d.getVar(var) or '').split()
|
||||
filemap = {}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class LayerPlugin():
|
|||
def tinfoil_init(self, tinfoil):
|
||||
self.tinfoil = tinfoil
|
||||
self.bblayers = (self.tinfoil.config_data.getVar('BBLAYERS') or "").split()
|
||||
layerconfs = self.tinfoil.config_data.varhistory.get_variable_items_files('BBFILE_COLLECTIONS', self.tinfoil.config_data)
|
||||
layerconfs = self.tinfoil.config_data.varhistory.get_variable_items_files('BBFILE_COLLECTIONS')
|
||||
self.bbfile_collections = {layer: os.path.dirname(os.path.dirname(path)) for layer, path in layerconfs.items()}
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class CookerPlugin(layerindexlib.plugin.IndexPlugin):
|
|||
return index
|
||||
|
||||
collections = d.getVar('BBFILE_COLLECTIONS')
|
||||
layerconfs = d.varhistory.get_variable_items_files('BBFILE_COLLECTIONS', d)
|
||||
layerconfs = d.varhistory.get_variable_items_files('BBFILE_COLLECTIONS')
|
||||
bbfile_collections = {layer: os.path.dirname(os.path.dirname(path)) for layer, path in layerconfs.items()}
|
||||
|
||||
(_, bb_branch, _, _) = self._get_bitbake_info()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user