bitbake: buildinfohelper: improve handling of providermap
DepTreeGenerated event doesn't contain 'providermap' data in jethro. Modified buildinfohelper to handle events without this data. This should make it possible to handle jethro events coming from jethro bitbake server by the latest buildinfohelper. (Bitbake rev: f6dcb1c9967f042beae024146781cb8235a9e1f2) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
61b6b98f40
commit
5bcce68ea3
|
@ -1244,7 +1244,6 @@ class BuildInfoHelper(object):
|
||||||
assert 'layer-priorities' in event._depgraph
|
assert 'layer-priorities' in event._depgraph
|
||||||
assert 'pn' in event._depgraph
|
assert 'pn' in event._depgraph
|
||||||
assert 'tdepends' in event._depgraph
|
assert 'tdepends' in event._depgraph
|
||||||
assert 'providermap' in event._depgraph
|
|
||||||
|
|
||||||
errormsg = ""
|
errormsg = ""
|
||||||
|
|
||||||
|
@ -1330,7 +1329,7 @@ class BuildInfoHelper(object):
|
||||||
if dep in assume_provided:
|
if dep in assume_provided:
|
||||||
continue
|
continue
|
||||||
via = None
|
via = None
|
||||||
if dep in event._depgraph['providermap']:
|
if 'providermap' in event._depgraph and dep in event._depgraph['providermap']:
|
||||||
deprecipe = event._depgraph['providermap'][dep][0]
|
deprecipe = event._depgraph['providermap'][dep][0]
|
||||||
dependency = self.internal_state['recipes'][deprecipe]
|
dependency = self.internal_state['recipes'][deprecipe]
|
||||||
via = Provides.objects.get_or_create(name=dep,
|
via = Provides.objects.get_or_create(name=dep,
|
||||||
|
|
Loading…
Reference in New Issue