diff mbox series

buildhistory_analysis: colourise more output

Message ID 20180122130539.16319-1-ross.burton@intel.com
State Accepted
Commit e0f2c84e5ee6c4e5a56e485010647ca698d010bf
Headers show
Series buildhistory_analysis: colourise more output | expand

Commit Message

Ross Burton Jan. 22, 2018, 1:05 p.m. UTC
Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/lib/oe/buildhistory_analysis.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index c05841b804c..6c0bca8d05d 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -124,10 +124,10 @@  class ChangeRecord:
             lines = []
             if renamed_dirs:
                 for dfrom, dto in renamed_dirs:
-                    lines.append('directory renamed %s -> %s' % (dfrom, dto))
+                    lines.append('directory renamed {colour_remove}{}{colour_default} -> {colour_add}{}{colour_default}'.format(dfrom, dto, **colours))
             if removed or added:
                 if removed and not bitems:
-                    lines.append('removed all items "%s"' % ' '.join(removed))
+                    lines.append('removed all items "{colour_remove}{}{colour_default}"'.format(' '.join(removed), **colours))
                 else:
                     if removed:
                         lines.append('removed "{colour_remove}{value}{colour_default}"'.format(value=' '.join(removed), **colours))