From fb36215cbef692d563bb500f67c471255b653195 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Nov 26 2019 15:49:06 +0000 Subject: cli: print inheritance flags before all tree characters Fixes https://pagure.io/koji/issue/1834 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 32a98c0..45480f2 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -4011,6 +4011,7 @@ def _printInheritance(tags, sibdepths=None, reverse=False): else: siblings = len([tag for tag in tags if tag['child_id'] == currtag['child_id']]) + sys.stdout.write(format_inheritance_flags(currtag)) outdepth = 0 for depth in sibdepths: if depth < currtag['currdepth']: @@ -4019,7 +4020,6 @@ def _printInheritance(tags, sibdepths=None, reverse=False): sys.stdout.write(_printable_unicode(u'\u2502')) outdepth = depth - sys.stdout.write(format_inheritance_flags(currtag)) sys.stdout.write(' ' * ((currtag['currdepth'] - outdepth) * 3 - 1)) if siblings: sys.stdout.write(_printable_unicode(u'\u251c'))