summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/siggen.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index 3b017219e..f9c4798e3 100644
--- a/lib/bb/siggen.py
+++ b/lib/bb/siggen.py
@@ -49,8 +49,9 @@ class SignatureGenerator(object):
return self.taskhash[task]
def get_taskhash(self, fn, task, deps, dataCache):
- self.taskhash[fn + "." + task] = "0"
- return self.taskhash[fn + "." + task]
+ k = fn + "." + task
+ self.taskhash[k] = hashlib.sha256(k.encode("utf-8")).hexdigest()
+ return self.taskhash[k]
def writeout_file_checksum_cache(self):
"""Write/update the file checksum cache onto disk"""