Skip to content

Commit

Permalink
report progress in single io.stderr() call to avoid interspersed output
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Aug 15, 2017
1 parent 1cfec9d commit 4eff3ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bundlewrap/utils/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,13 @@ def progress_show(self):
_("{} (estimate based on progress)").format(format_duration(remaining))
],
])
io.stderr(blue("i"))
output = blue("i") + "\n"
if table:
for line in render_table(table):
io.stderr("{x} {line}".format(x=blue("i"), line=line))
output += ("{x} {line}\n".format(x=blue("i"), line=line))
else:
io.stderr(_("{x} No progress info available at this time.").format(x=blue("i")))
io.stderr(blue("i"))
output += _("{x} No progress info available at this time.\n").format(x=blue("i"))
io.stderr(output + blue("i"))

@clear_formatting
@capture_for_debug_logfile
Expand Down

0 comments on commit 4eff3ee

Please sign in to comment.