summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-11 18:27:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-26 09:27:32 +0100
commitd7c8d9558c8b600be1507212c78dde833b2bb57e (patch)
tree941c11d7e4aeca7f0c1106a39d1b8006264fbd16 /bitbake/lib/bb/ui
parent160563532f87bd901e1cc6972fe238be87a8b63c (diff)
downloadpoky-d7c8d9558c8b600be1507212c78dde833b2bb57e.tar.gz
bitbake: toaster: fill in build data from buildrequest
This patch adds logic to complete changing the interface from showing BuildRequests to showing Build data. The BuildRequest data is now transformed in Build data with proper Toaster exceptions being recorded instead of listing problems during startup as build errors. (Bitbake rev: 51a41172d0b390370f9a38696b1ac65666ada4d2) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 3ea842cd4b..8b63f70a07 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -133,7 +133,21 @@ class ORMWrapper(object):
133 logger.debug(1, "buildinfohelper: project is not specified, defaulting to %s" % prj) 133 logger.debug(1, "buildinfohelper: project is not specified, defaulting to %s" % prj)
134 134
135 135
136 build = Build.objects.create( 136 if buildrequest is not None:
137 build = buildrequest.build
138 build.machine=build_info['machine'],
139 build.distro=build_info['distro'],
140 build.distro_version=build_info['distro_version'],
141 build.completed_on=build_info['started_on'],
142 build.cooker_log_path=build_info['cooker_log_path'],
143 build.build_name=build_info['build_name'],
144 build.bitbake_version=build_info['bitbake_version']
145 build.save()
146
147 build.target_set.delete()
148
149 else:
150 build = Build.objects.create(
137 project = prj, 151 project = prj,
138 machine=build_info['machine'], 152 machine=build_info['machine'],
139 distro=build_info['distro'], 153 distro=build_info['distro'],