[oe-commits] [openembedded-core] 10/17: buildhistory_analysis: colourise more output

git at git.openembedded.org git at git.openembedded.org
Mon Jan 22 23:28:40 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit e0f2c84e5ee6c4e5a56e485010647ca698d010bf
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Mon Jan 22 13:05:36 2018 +0000

    buildhistory_analysis: colourise more output
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oe/buildhistory_analysis.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index c05841b..6c0bca8 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))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list