summaryrefslogtreecommitdiff
path: root/buildstream/_frontend
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-05-27 18:08:31 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-05-27 18:08:31 +0900
commit556638501e930c39b68dd7a1b62a47573e3fb493 (patch)
treea240ff0db6f566ccbbf675eb202ad051e4236dc4 /buildstream/_frontend
parenteb9b34d36177bf7679452648fb9a98621c327b73 (diff)
downloadbuildstream-556638501e930c39b68dd7a1b62a47573e3fb493.tar.gz
widget.py: print_heading() now takes an optional 'deps' argument
So we can control which elements we print in the heading.
Diffstat (limited to 'buildstream/_frontend')
-rw-r--r--buildstream/_frontend/widget.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py
index e38a975d5..a71ada0f6 100644
--- a/buildstream/_frontend/widget.py
+++ b/buildstream/_frontend/widget.py
@@ -404,7 +404,7 @@ class LogLine(Widget):
# Args:
# log_file (file): An optional file handle for additional logging
#
- def print_heading(self, pipeline, variant, log_file):
+ def print_heading(self, pipeline, variant, log_file, deps=None):
context = pipeline.context
project = pipeline.project
starttime = datetime.datetime.now()
@@ -439,7 +439,8 @@ class LogLine(Widget):
# Pipeline state
text += self.content_profile.fmt("Pipeline\n", bold=True)
- deps = pipeline.dependencies(Scope.ALL)
+ if deps is None:
+ deps = pipeline.dependencies(Scope.ALL)
text += self.show_pipeline(deps, context.log_element_format)
text += '\n'