summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-22 13:10:56 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-08 17:03:36 +0900
commit8ae286656c05720a4ed9021ecd85e5e49939b491 (patch)
tree143409cdc2db871bf6cd2fb22ff5127328738be6
parent66b51dfbc93b8ff8e8051cbb88ec1e035fa51da4 (diff)
downloadbuildstream-8ae286656c05720a4ed9021ecd85e5e49939b491.tar.gz
_frontend/widget.py: print_heading() no longer recognizes %{variant}
No more variants on `bst show` or when printing the pipeline at session startup time.
-rw-r--r--buildstream/_frontend/widget.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py
index 92c553ef1..9ddae83f8 100644
--- a/buildstream/_frontend/widget.py
+++ b/buildstream/_frontend/widget.py
@@ -418,11 +418,10 @@ class LogLine(Widget):
# Args:
# pipeline (Pipeline): The pipeline to print the heading of
# log_file (file): An optional file handle for additional logging
- # variant (str): The selected variant for the pipeline target
# deps (list): Optional list of elements, default is to use the whole pipeline
# styling (bool): Whether to enable ansi escape codes in the output
#
- def print_heading(self, pipeline, variant, log_file, deps=None, styling=False):
+ def print_heading(self, pipeline, log_file, deps=None, styling=False):
context = pipeline.context
project = pipeline.project
starttime = datetime.datetime.now()
@@ -438,7 +437,6 @@ class LogLine(Widget):
values["Target"] = pipeline.target.name
values["Host Architecture"] = context.host_arch
values["Target Architecture"] = context.target_arch
- values["Variant"] = variant
text += self.format_values(values)
# User configurations
@@ -592,9 +590,6 @@ class LogLine(Widget):
else:
line = p.fmt_subst(line, 'state', "waiting", fg='blue')
- # The variant
- line = p.fmt_subst(line, 'variant', element.variant or "", fg='yellow', bold=True, dim=True)
-
# Element configuration
if "%{config" in format:
config = _yaml.node_sanitize(element._Element__config)