| |
@@ -40,7 +40,7 @@
|
| |
_unique_path, _running_in_bg, _progress_callback, watch_tasks, \
|
| |
arg_filter, linked_upload, list_task_output_all_volumes, \
|
| |
print_task_headers, print_task_recurse, download_file, watch_logs, \
|
| |
- error, greetings, _list_tasks, unique_path
|
| |
+ error, greetings, _list_tasks, unique_path, format_inheritance_flags
|
| |
|
| |
|
| |
def _printable_unicode(s):
|
| |
@@ -3767,6 +3767,7 @@
|
| |
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'))
|
| |
@@ -3839,7 +3840,7 @@
|
| |
parser.error(_("Unknown tag: %s" % options.stop))
|
| |
opts['stops'] = {str(tag1): 1}
|
| |
|
| |
- sys.stdout.write('%s (%i)\n' % (tag['name'], tag['id']))
|
| |
+ sys.stdout.write(' %s (%i)\n' % (tag['name'], tag['id']))
|
| |
data = session.getFullInheritance(tag['id'], **opts)
|
| |
_printInheritance(data, None, opts['reverse'])
|
| |
|
| |
@@ -4670,17 +4671,7 @@
|
| |
print(" %(priority)3i %(external_repo_name)s (%(url)s)" % rinfo)
|
| |
print("Inheritance:")
|
| |
for parent in session.getInheritanceData(tag, **event_opts):
|
| |
- flags = ''
|
| |
- for code,expr in (
|
| |
- ('M',parent['maxdepth'] is not None),
|
| |
- ('F',parent['pkg_filter']),
|
| |
- ('I',parent['intransitive']),
|
| |
- ('N',parent['noconfig']),):
|
| |
- if expr:
|
| |
- flags += code
|
| |
- else:
|
| |
- flags += '.'
|
| |
- parent['flags'] = flags
|
| |
+ parent['flags'] = format_inheritance_flags(parent)
|
| |
print(" %(priority)-4d %(flags)s %(name)s [%(parent_id)s]" % parent)
|
| |
if parent['maxdepth'] is not None:
|
| |
print(" maxdepth: %(maxdepth)s" % parent)
|
| |
While not often used, tag inheritance can be modified with a few different options (e.g. maxdepth). These options are shown in the taginfo display, but not the list-tag-inheritance display. This patch adds basic indicators to the latter.