|
|
@ -154,9 +154,12 @@ class Summary: |
|
|
|
raise InterpreterException(f'Summary section {section!r} already have key {k!r}') |
|
|
|
raise InterpreterException(f'Summary section {section!r} already have key {k!r}') |
|
|
|
formatted_values = [] |
|
|
|
formatted_values = [] |
|
|
|
for i in listify(v): |
|
|
|
for i in listify(v): |
|
|
|
if isinstance(i, bool) and bool_yn: |
|
|
|
if isinstance(i, bool): |
|
|
|
|
|
|
|
if bool_yn: |
|
|
|
formatted_values.append(mlog.green('YES') if i else mlog.red('NO')) |
|
|
|
formatted_values.append(mlog.green('YES') if i else mlog.red('NO')) |
|
|
|
elif isinstance(i, (str, int, bool)): |
|
|
|
else: |
|
|
|
|
|
|
|
formatted_values.append('true' if i else 'false') |
|
|
|
|
|
|
|
elif isinstance(i, (str, int)): |
|
|
|
formatted_values.append(str(i)) |
|
|
|
formatted_values.append(str(i)) |
|
|
|
elif isinstance(i, (ExternalProgram, Dependency)): |
|
|
|
elif isinstance(i, (ExternalProgram, Dependency)): |
|
|
|
FeatureNew.single_use('dependency or external program in summary', '0.57.0', subproject) |
|
|
|
FeatureNew.single_use('dependency or external program in summary', '0.57.0', subproject) |
|
|
|