[oe-commits] [bitbake] 02/04: bitbake-diffsigs: Use 4 spaces as indent for recursecb

git at git.openembedded.org git at git.openembedded.org
Wed Apr 17 16:39:18 UTC 2019


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

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

commit 15067e4ddb7dabd77ff5090e400c9e579cbac2ee
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Wed Apr 17 19:01:49 2019 +0800

    bitbake-diffsigs: Use 4 spaces as indent for recursecb
    
    It used 2 spaces as indent which wasn't clear enough, and might cause
    confusions, people might think it was in wrong format.
    
    Fixed:
    $ bitbake bc-native -ccleansstate -Snone
    $ bitbake bc-native -ccleansstate -Snone
    $ bitbake-diffsigs tmp/stamps/x86_64-linux/bc-native/1.07.1-r0.do_cleansstate.sigdata.*
    
    * Before:
    Hash for dependent task bc/bc_1.07.1.bb.do_clean:virtual:native changed from [foo]
      Taint (by forced/invalidated task) changed from [foo]
    Taint (by forced/invalidated task) changed from [foo]
    
    * Now
    Hash for dependent task bc/bc_1.07.1.bb.do_clean:virtual:native changed from [foo]
        Taint (by forced/invalidated task) changed from [foo]
    Taint (by forced/invalidated task) changed from [foo]
    
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 bin/bitbake-diffsigs | 2 +-
 lib/bb/runqueue.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/bitbake-diffsigs b/bin/bitbake-diffsigs
index fa430bb..73229b7 100755
--- a/bin/bitbake-diffsigs
+++ b/bin/bitbake-diffsigs
@@ -105,7 +105,7 @@ def recursecb(key, hash1, hash2):
         out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb, color=color)
         for change in out2:
             for line in change.splitlines():
-                recout.append('  ' + line)
+                recout.append('    ' + line)
 
     return recout
 
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 329cda3..524c85d 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1667,7 +1667,7 @@ class RunQueue:
             recout = []
             if len(hashfiles) == 2:
                 out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb)
-                recout.extend(list('  ' + l for l in out2))
+                recout.extend(list('    ' + l for l in out2))
             else:
                 recout.append("Unable to find matching sigdata for %s with hashes %s or %s" % (key, hash1, hash2))
 

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


More information about the Openembedded-commits mailing list