Skip to contentSkip to conversation

siggen: Update debug

PATCH New Richard Purdie 1 participant 1 message Aug 13, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 siggen: Update debug

The debug in the comments was out of date. It is still useful so update the code sample to the new code needed.

---
 lib/bb/siggen.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
lib/bb/siggen.py +5 -4
index dcb1334e8d..879c136e18 100644
@@ -261,10 +261,6 @@ class SignatureGeneratorBasic(SignatureGenerator):
             bb.warn("Error during finalise of %s" % mcfn)
             raise
 
-        #Slow but can be useful for debugging mismatched basehashes
-        #for task in self.taskdeps[mcfn]:
-        #    self.dump_sigtask(mcfn, task, d.getVar("STAMP"), False)
-
         basehashes = {}
         for task in taskdeps:
             basehashes[task] = self.basehash[mcfn + ":" + task]
@@ -274,6 +270,11 @@ class SignatureGeneratorBasic(SignatureGenerator):
         d.setVar("__siggen_varvals", lookupcache)
         d.setVar("__siggen_taskdeps", taskdeps)
 
+        #Slow but can be useful for debugging mismatched basehashes
+        #self.setup_datacache_from_datastore(mcfn, d)
+        #for task in taskdeps:
+        #    self.dump_sigtask(mcfn, task, d.getVar("STAMP"), False)
+
     def setup_datacache_from_datastore(self, mcfn, d):
         super().setup_datacache_from_datastore(mcfn, d)
 
Signature · 1 line
2.39.2