From ef05969dc6e050d714273268cc0ec191022ffd26 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Fri, 7 Apr 2017 09:52:01 +1200 Subject: bitbake: bitbake-diffsigs: fix -t picking wrong files to compare We weren't picking the right files to compare here - according to the order in which the list is sorted (by mtime), we need to be taking the last two items and not the first two. (Bitbake rev: 99f49b56115b1f8d1a0a0b911da62ffd1f997b5f) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-diffsigs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bitbake/bin') diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs index 1e3de092af..b2ebe91dbf 100755 --- a/bitbake/bin/bitbake-diffsigs +++ b/bitbake/bin/bitbake-diffsigs @@ -84,9 +84,9 @@ def find_compare_task(bbhandler, pn, taskname): return recout # Recurse into signature comparison - logger.debug("Signature file (previous): %s" % latestfiles[0]) - logger.debug("Signature file (latest): %s" % latestfiles[1]) - output = bb.siggen.compare_sigfiles(latestfiles[0], latestfiles[1], recursecb) + logger.debug("Signature file (previous): %s" % latestfiles[-2]) + logger.debug("Signature file (latest): %s" % latestfiles[-1]) + output = bb.siggen.compare_sigfiles(latestfiles[-2], latestfiles[-1], recursecb) if output: print('\n'.join(output)) sys.exit(0) -- cgit v1.2.3-54-g00ecf