Commit 972cd7d5 by Sébastien Eustace

Fix show --tre

parent 27ce5b4b
...@@ -187,7 +187,7 @@ lists all packages available.""" ...@@ -187,7 +187,7 @@ lists all packages available."""
i += 1 i += 1
current_tree = packages_in_tree current_tree = packages_in_tree
if i == total: if i == total:
tree_bar = previous_tree_bar + '└' tree_bar = previous_tree_bar + ' └'
color_ident = level % len(self.colors) color_ident = level % len(self.colors)
color = self.colors[color_ident] color = self.colors[color_ident]
...@@ -196,7 +196,7 @@ lists all packages available.""" ...@@ -196,7 +196,7 @@ lists all packages available."""
if dependency.name in current_tree: if dependency.name in current_tree:
circular_warn = '(circular dependency aborted here)' circular_warn = '(circular dependency aborted here)'
info = f'{tree_bar}── <{color}>{dependency.name}</{color} ' \ info = f'{tree_bar}── <{color}>{dependency.name}</{color}> ' \
f'{dependency.pretty_constraint} {circular_warn}' f'{dependency.pretty_constraint} {circular_warn}'
self._write_tree_line(info) self._write_tree_line(info)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment