summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-diffsigs
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-04-07 09:52:01 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-10 23:00:32 +0100
commitef05969dc6e050d714273268cc0ec191022ffd26 (patch)
treea826ca8b0efcee8008a80acca394548b71899559 /bitbake/bin/bitbake-diffsigs
parent123ec6ebc252f46a2efdd69bd65ded533712bd99 (diff)
downloadpoky-ef05969dc6e050d714273268cc0ec191022ffd26.tar.gz
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>
Diffstat (limited to 'bitbake/bin/bitbake-diffsigs')
-rwxr-xr-xbitbake/bin/bitbake-diffsigs6
1 files changed, 3 insertions, 3 deletions
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):
84 return recout 84 return recout
85 85
86 # Recurse into signature comparison 86 # Recurse into signature comparison
87 logger.debug("Signature file (previous): %s" % latestfiles[0]) 87 logger.debug("Signature file (previous): %s" % latestfiles[-2])
88 logger.debug("Signature file (latest): %s" % latestfiles[1]) 88 logger.debug("Signature file (latest): %s" % latestfiles[-1])
89 output = bb.siggen.compare_sigfiles(latestfiles[0], latestfiles[1], recursecb) 89 output = bb.siggen.compare_sigfiles(latestfiles[-2], latestfiles[-1], recursecb)
90 if output: 90 if output:
91 print('\n'.join(output)) 91 print('\n'.join(output))
92 sys.exit(0) 92 sys.exit(0)