diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 6e313fee8b..e5f1e09978 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -161,8 +161,6 @@ class ORMWrapper(object): | |||
161 | build.bitbake_version=build_info['bitbake_version'] | 161 | build.bitbake_version=build_info['bitbake_version'] |
162 | build.save() | 162 | build.save() |
163 | 163 | ||
164 | Target.objects.filter(build = build).delete() | ||
165 | |||
166 | else: | 164 | else: |
167 | build = Build.objects.create( | 165 | build = Build.objects.create( |
168 | project = prj, | 166 | project = prj, |
@@ -183,19 +181,6 @@ class ORMWrapper(object): | |||
183 | 181 | ||
184 | return build | 182 | return build |
185 | 183 | ||
186 | def create_target_objects(self, target_info): | ||
187 | assert 'build' in target_info | ||
188 | assert 'targets' in target_info | ||
189 | |||
190 | targets = [] | ||
191 | for tgt_name in target_info['targets']: | ||
192 | tgt_object = Target.objects.create( build = target_info['build'], | ||
193 | target = tgt_name, | ||
194 | is_image = False, | ||
195 | ) | ||
196 | targets.append(tgt_object) | ||
197 | return targets | ||
198 | |||
199 | def update_build_object(self, build, errors, warnings, taskfailures): | 184 | def update_build_object(self, build, errors, warnings, taskfailures): |
200 | assert isinstance(build,Build) | 185 | assert isinstance(build,Build) |
201 | assert isinstance(errors, int) | 186 | assert isinstance(errors, int) |
@@ -869,7 +854,7 @@ class BuildInfoHelper(object): | |||
869 | target_information['targets'] = event._pkgs | 854 | target_information['targets'] = event._pkgs |
870 | target_information['build'] = build_obj | 855 | target_information['build'] = build_obj |
871 | 856 | ||
872 | self.internal_state['targets'] = self.orm_wrapper.create_target_objects(target_information) | 857 | self.internal_state['targets'] = Target.objects.filter(build=target_information['build']) |
873 | 858 | ||
874 | # Save build configuration | 859 | # Save build configuration |
875 | data = self.server.runCommand(["getAllKeysWithFlags", ["doc", "func"]])[0] | 860 | data = self.server.runCommand(["getAllKeysWithFlags", ["doc", "func"]])[0] |