summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2017-10-30 17:54:14 +0000
committerTristan Maat <tristan.maat@codethink.co.uk>2017-11-03 13:55:58 +0000
commit34e047d380d1a0ec8dd3a2fe332515cde73dd695 (patch)
tree482665c13647d203164f52861ec5824dcb43990b
parent99610a2ddad6f8d9b2b9af75a0c071f2c84e871a (diff)
downloadbuildstream-34e047d380d1a0ec8dd3a2fe332515cde73dd695.tar.gz
Stop using pipeline.target for UI widgets
-rw-r--r--buildstream/_frontend/status.py4
-rw-r--r--buildstream/_frontend/widget.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_frontend/status.py b/buildstream/_frontend/status.py
index 030cba1f0..a0135ac1e 100644
--- a/buildstream/_frontend/status.py
+++ b/buildstream/_frontend/status.py
@@ -281,9 +281,9 @@ class StatusHeader():
# Format and calculate size for pipeline target and overall time code
size += len(total) + len(session) + 4 # Size for (N/N) with a leading space
size += 8 # Size of time code
- size += len(self.pipeline.target.name) + 1
+ size += len(self.pipeline.project.name) + 1
text += self.time_code.render_time(elapsed)
- text += ' ' + self.content_profile.fmt(self.pipeline.target.name)
+ text += ' ' + self.content_profile.fmt(self.pipeline.project.name)
text += ' ' + self.format_profile.fmt('(') + \
self.content_profile.fmt(session) + \
self.format_profile.fmt('/') + \
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py
index e1ea4e04b..7ab0f395c 100644
--- a/buildstream/_frontend/widget.py
+++ b/buildstream/_frontend/widget.py
@@ -436,7 +436,7 @@ class LogLine(Widget):
values = OrderedDict()
values["Session Start"] = starttime.strftime('%A, %d-%m-%Y at %H:%M:%S')
values["Project"] = "{} ({})".format(project.name, project.directory)
- values["Target"] = pipeline.target.name
+ values["Targets"] = ", ".join([t.name for t in pipeline.targets])
values["Host Architecture"] = context.host_arch
values["Target Architecture"] = context.target_arch
text += self.format_values(values)