summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/buildinfohelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/buildinfohelper.py')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 09e8853338..2d1ed51116 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -145,13 +145,14 @@ class ORMWrapper(object):
145 prj = Project.objects.get(pk = project_id) 145 prj = Project.objects.get(pk = project_id)
146 146
147 else: # this build was triggered by a legacy system, or command line interactive mode 147 else: # this build was triggered by a legacy system, or command line interactive mode
148 prj, _ = Project.objects.get_or_create(pk=0, name="Default Project") 148 prj = Project.objects.get_default_project()
149 logger.debug(1, "buildinfohelper: project is not specified, defaulting to %s" % prj) 149 logger.debug(1, "buildinfohelper: project is not specified, defaulting to %s" % prj)
150 150
151 151
152 if buildrequest is not None: 152 if buildrequest is not None:
153 build = buildrequest.build 153 build = buildrequest.build
154 logger.info("Updating existing build, with %s", build_info) 154 logger.info("Updating existing build, with %s", build_info)
155 build.project = prj
155 build.machine=build_info['machine'] 156 build.machine=build_info['machine']
156 build.distro=build_info['distro'] 157 build.distro=build_info['distro']
157 build.distro_version=build_info['distro_version'] 158 build.distro_version=build_info['distro_version']