diff options
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 16 |
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'], |