diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-08-18 17:28:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-19 18:05:54 +0100 |
commit | 07b58c97342d4f2efff80891981e8ee63dd198d0 (patch) | |
tree | dc6f46dd8d1af06e0b6aaba2a03cd786ca9c3a65 /bitbake/lib/toaster/bldcontrol/management | |
parent | 242603e9b43be44bc735c6aaf9e721e08224667e (diff) | |
download | poky-07b58c97342d4f2efff80891981e8ee63dd198d0.tar.gz |
bitbake: toaster: fix updates on failed build requests
The patch to fix the original mistake is wrong, in the sense
that a constant from the BuildRequest class is used on the build
object.
Fixing the patch to bring in the correct constant in.
(Bitbake rev: a740c17efc0ccc9f89a428ead08f9739af3c6de4)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/management')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py index e3a1fdbf6d..c3e9b74c09 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): | |||
130 | # update all BuildRequests without a build created | 130 | # update all BuildRequests without a build created |
131 | for br in BuildRequest.objects.filter(build = None): | 131 | for br in BuildRequest.objects.filter(build = None): |
132 | br.build = Build.objects.create(project = br.project, completed_on = br.updated, started_on = br.created) | 132 | br.build = Build.objects.create(project = br.project, completed_on = br.updated, started_on = br.created) |
133 | br.build.outcome = BuildRequest.REQ_FAILED | 133 | br.build.outcome = Build.FAILED |
134 | try: | 134 | try: |
135 | br.build.machine = br.brvariable_set.get(name='MACHINE').value | 135 | br.build.machine = br.brvariable_set.get(name='MACHINE').value |
136 | except BRVariable.DoesNotExist: | 136 | except BRVariable.DoesNotExist: |