[bitbake-devel] [PATCH 4/5] bitbake: toaster: runbuilds Fix incorrect variable name
Michael Wood
michael.g.wood at intel.com
Thu Jul 2 16:58:15 UTC 2015
The recent refactoring moved this enum value to BuildRequests table
rather than Build.
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
index 33cc94e..e3a1fdb 100644
--- a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
+++ b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
@@ -130,7 +130,7 @@ class Command(NoArgsCommand):
# update all BuildRequests without a build created
for br in BuildRequest.objects.filter(build = None):
br.build = Build.objects.create(project = br.project, completed_on = br.updated, started_on = br.created)
- br.build.outcome = Build.REQ_FAILED
+ br.build.outcome = BuildRequest.REQ_FAILED
try:
br.build.machine = br.brvariable_set.get(name='MACHINE').value
except BRVariable.DoesNotExist:
--
2.1.4
More information about the bitbake-devel
mailing list