diff options
Diffstat (limited to 'bitbake/lib/bb/ui/buildinfohelper.py')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index cba016528c..0cb6f684f9 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -41,7 +41,7 @@ from orm.models import Target_Image_File, BuildArtifact | |||
41 | from orm.models import Variable, VariableHistory | 41 | from orm.models import Variable, VariableHistory |
42 | from orm.models import Package, Package_File, Target_Installed_Package, Target_File | 42 | from orm.models import Package, Package_File, Target_Installed_Package, Target_File |
43 | from orm.models import Task_Dependency, Package_Dependency | 43 | from orm.models import Task_Dependency, Package_Dependency |
44 | from orm.models import Recipe_Dependency | 44 | from orm.models import Recipe_Dependency, Provides |
45 | 45 | ||
46 | from orm.models import Project | 46 | from orm.models import Project |
47 | from bldcontrol.models import BuildEnvironment, BuildRequest | 47 | from bldcontrol.models import BuildEnvironment, BuildRequest |
@@ -1268,15 +1268,20 @@ class BuildInfoHelper(object): | |||
1268 | for dep in event._depgraph['depends'][recipe]: | 1268 | for dep in event._depgraph['depends'][recipe]: |
1269 | if dep in assume_provided: | 1269 | if dep in assume_provided: |
1270 | continue | 1270 | continue |
1271 | via = None | ||
1271 | if dep in event._depgraph['providermap']: | 1272 | if dep in event._depgraph['providermap']: |
1272 | dep = event._depgraph['providermap'][dep][0] | 1273 | deprecipe = event._depgraph['providermap'][dep][0] |
1273 | if dep in self.internal_state['recipes']: | 1274 | dependency = self.internal_state['recipes'][deprecipe] |
1275 | via = Provides.objects.get_or_create(name=dep, | ||
1276 | recipe=dependency)[0] | ||
1277 | elif dep in self.internal_state['recipes']: | ||
1274 | dependency = self.internal_state['recipes'][dep] | 1278 | dependency = self.internal_state['recipes'][dep] |
1275 | else: | 1279 | else: |
1276 | errormsg += " stpd: KeyError saving recipe dependency for %s, %s \n" % (recipe, dep) | 1280 | errormsg += " stpd: KeyError saving recipe dependency for %s, %s \n" % (recipe, dep) |
1277 | continue | 1281 | continue |
1278 | recipe_dep = Recipe_Dependency(recipe=target, | 1282 | recipe_dep = Recipe_Dependency(recipe=target, |
1279 | depends_on=dependency, | 1283 | depends_on=dependency, |
1284 | via=via, | ||
1280 | dep_type=Recipe_Dependency.TYPE_DEPENDS) | 1285 | dep_type=Recipe_Dependency.TYPE_DEPENDS) |
1281 | recipedeps_objects.append(recipe_dep) | 1286 | recipedeps_objects.append(recipe_dep) |
1282 | 1287 | ||