[bitbake-devel,2/2] bitbake-diffsigs: Support recursive deps with signature files

Submitted by Peter Kjellerstedt on Dec. 28, 2018, 5:30 p.m. | Patch ID: 157477

Details

Message ID 20181228173040.26029-2-pkj@axis.com
State New
Headers show

Commit Message

Peter Kjellerstedt Dec. 28, 2018, 5:30 p.m.
Follow dependent hash changes recursively also when specifying two
signature files explicitly. Previously this was only done when using the
--task option.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 bitbake/bin/bitbake-diffsigs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs
index b0869e1143..fa430bb3b3 100755
--- a/bitbake/bin/bitbake-diffsigs
+++ b/bitbake/bin/bitbake-diffsigs
@@ -188,7 +188,9 @@  else:
         sys.exit(1)
     try:
         if not options.dump and options.sigdatafile1 and options.sigdatafile2:
-            output = bb.siggen.compare_sigfiles(options.sigdatafile1, options.sigdatafile2, color=color)
+            with bb.tinfoil.Tinfoil() as tinfoil:
+                tinfoil.prepare(config_only=True)
+                output = bb.siggen.compare_sigfiles(options.sigdatafile1, options.sigdatafile2, recursecb, color=color)
         elif options.sigdatafile1:
             output = bb.siggen.dump_sigfile(options.sigdatafile1)
         else: