From: Alexandru DAMIAN Date: Tue, 18 Aug 2015 16:28:56 +0000 (+0100) Subject: toaster: fix updates on failed build requests X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a740c17efc0ccc9f89a428ead08f9739af3c6de4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Alexandru DAMIAN Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/bldcontrol/management/commands/runbuilds.py b/lib/toaster/bldcontrol/management/commands/runbuilds.py index e3a1fdbf6d6..c3e9b74c091 100644 --- a/lib/toaster/bldcontrol/management/commands/runbuilds.py +++ b/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 = BuildRequest.REQ_FAILED + br.build.outcome = Build.FAILED try: br.build.machine = br.brvariable_set.get(name='MACHINE').value except BRVariable.DoesNotExist: