diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-10-30 17:54:14 +0000 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-04 17:35:30 +0900 |
commit | 444d1a422ef336a0dbe303e266e532124fb2e7c4 (patch) | |
tree | fa5d5b9a9e5b3bed4e9c2722377bd9bed2bbc0d3 | |
parent | 54f2eb8502851086804a50d67e279cbb58d9a187 (diff) | |
download | buildstream-444d1a422ef336a0dbe303e266e532124fb2e7c4.tar.gz |
Stop using pipeline.target for UI widgets
-rw-r--r-- | buildstream/_frontend/status.py | 4 | ||||
-rw-r--r-- | buildstream/_frontend/widget.py | 2 |
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) |