From bcdd4f520c9e1dcbeb10b4912c7fe4aad5298bf0 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Jan 09 2020 09:42:12 +0000 Subject: fix flags display for list-tag-inheritance Fixes: https://pagure.io/koji/issue/1928 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 3b398b5..6975773 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -3852,6 +3852,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']: @@ -3860,7 +3861,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'))