[oe-commits] [bitbake] branch 1.32 updated: siggen: Make calc_taskhash match get_taskhash for file checksums

git at git.openembedded.org git at git.openembedded.org
Tue Jun 27 12:47:34 UTC 2017


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

rpurdie pushed a commit to branch 1.32
in repository bitbake.

The following commit(s) were added to refs/heads/1.32 by this push:
     new df69c02  siggen: Make calc_taskhash match get_taskhash for file checksums
df69c02 is described below

commit df69c0257aaa9f4e2f4a20d130b7bc0ce2ca0848
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon May 29 11:10:18 2017 +0100

    siggen: Make calc_taskhash match get_taskhash for file checksums
    
    The code in these two functions is meant to be equivlanet in behaviour
    but isn't. Add in code to ensure files that don't exist are handled
    consistently by both functions. Users did report being able to generate
    tracebacks otherwise.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/siggen.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index 40085b9..542bbb9 100644
--- a/lib/bb/siggen.py
+++ b/lib/bb/siggen.py
@@ -564,7 +564,8 @@ def calc_taskhash(sigdata):
         data = data + sigdata['runtaskhashes'][dep]
 
     for c in sigdata['file_checksum_values']:
-        data = data + c[1]
+        if c[1]:
+            data = data + c[1]
 
     if 'taint' in sigdata:
         if 'nostamp:' in sigdata['taint']:

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


More information about the Openembedded-commits mailing list