summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/buildhistory_analysis.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-01-22 13:05:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-23 23:43:45 +0000
commit26983fc6e241e6e3a4dcdb5f0d63126c821fafe5 (patch)
tree95ee9be8c042855aea64c1e21e0ebd1dc911e820 /meta/lib/oe/buildhistory_analysis.py
parentd490731913c6d88d4831316869ca6f56f338117c (diff)
downloadpoky-26983fc6e241e6e3a4dcdb5f0d63126c821fafe5.tar.gz
buildhistory_analysis: colourise more output
(From OE-Core rev: e0f2c84e5ee6c4e5a56e485010647ca698d010bf) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/buildhistory_analysis.py')
-rw-r--r--meta/lib/oe/buildhistory_analysis.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index c05841b804..6c0bca8d05 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -124,10 +124,10 @@ class ChangeRecord:
124 lines = [] 124 lines = []
125 if renamed_dirs: 125 if renamed_dirs:
126 for dfrom, dto in renamed_dirs: 126 for dfrom, dto in renamed_dirs:
127 lines.append('directory renamed %s -> %s' % (dfrom, dto)) 127 lines.append('directory renamed {colour_remove}{}{colour_default} -> {colour_add}{}{colour_default}'.format(dfrom, dto, **colours))
128 if removed or added: 128 if removed or added:
129 if removed and not bitems: 129 if removed and not bitems:
130 lines.append('removed all items "%s"' % ' '.join(removed)) 130 lines.append('removed all items "{colour_remove}{}{colour_default}"'.format(' '.join(removed), **colours))
131 else: 131 else:
132 if removed: 132 if removed:
133 lines.append('removed "{colour_remove}{value}{colour_default}"'.format(value=' '.join(removed), **colours)) 133 lines.append('removed "{colour_remove}{value}{colour_default}"'.format(value=' '.join(removed), **colours))