From b96fd708ec0da0b2e35a5bc5521d9a7f8e780953 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Feb 04 2020 08:21:49 +0000 Subject: PR#1929: fix flags display for list-tag-inheritance Merges #1929 https://pagure.io/koji/pull-request/1929 Fixes: #1928 https://pagure.io/koji/issue/1928 list-tag-inheritance garbles flags for same-level inheritance --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 887c443..018e402 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -3865,6 +3865,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']: @@ -3873,7 +3874,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'))