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 <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2017-04-07 09:52:01 +12:00 committed by Richard Purdie
parent 123ec6ebc2
commit ef05969dc6
1 changed files with 3 additions and 3 deletions

View File

@ -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)