diff options
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py | 2 | ||||
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py index 718e1441dc..5243a50f9b 100644 --- a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py +++ b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py | |||
@@ -118,7 +118,7 @@ class Command(NoArgsCommand): | |||
118 | br.save() | 118 | br.save() |
119 | # transpose target information | 119 | # transpose target information |
120 | for brtarget in br.brtarget_set.all(): | 120 | for brtarget in br.brtarget_set.all(): |
121 | Target.objects.create(build = br.build, target= brtarget.target) | 121 | Target.objects.create(build=br.build, target=brtarget.target, task=brtarget.task) |
122 | # transpose the launch errors in ToasterExceptions | 122 | # transpose the launch errors in ToasterExceptions |
123 | for brerror in br.brerror_set.all(): | 123 | for brerror in br.brerror_set.all(): |
124 | LogMessage.objects.create(build = br.build, level = LogMessage.EXCEPTION, message = brerror.errmsg) | 124 | LogMessage.objects.create(build = br.build, level = LogMessage.EXCEPTION, message = brerror.errmsg) |
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index e4d2e87ae9..883ecf4e50 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -270,7 +270,7 @@ class Project(models.Model): | |||
270 | ) | 270 | ) |
271 | for t in self.projecttarget_set.all(): | 271 | for t in self.projecttarget_set.all(): |
272 | BRTarget.objects.create(req = br, target = t.target, task = t.task) | 272 | BRTarget.objects.create(req = br, target = t.target, task = t.task) |
273 | Target.objects.create(build = br.build, target = t.target) | 273 | Target.objects.create(build = br.build, target = t.target, task = t.task) |
274 | 274 | ||
275 | for v in self.projectvariable_set.all(): | 275 | for v in self.projectvariable_set.all(): |
276 | BRVariable.objects.create(req = br, name = v.name, value = v.value) | 276 | BRVariable.objects.create(req = br, name = v.name, value = v.value) |