1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

bitbake: toastergui: code formatting and clean-up

Minor fixes to code formatting and small improvements from
code review.

(Bitbake rev: 2c97f3a5c6ae37de910deb90390c5b856a600c5f)

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Elliot Smith
2016-01-15 13:01:06 +02:00
committed by Richard Purdie
parent c4b50111e9
commit 798e8b8d03
3 changed files with 8 additions and 13 deletions
+3 -9
View File
@@ -477,15 +477,9 @@ class Build(models.Model):
targets in this build
"""
targets = self.target_set.all()
target_labels = []
target_label = None
for target in targets:
target_label = target.target
if target.task:
target_label = target_label + ':' + target.task
target_labels.append(target_label)
target_labels = [target.target +
(':' + target.task if target.task else '')
for target in targets]
target_labels.sort()
return target_labels