aboutsummaryrefslogtreecommitdiffstats
path: root/bin
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-07 00:51:12 +0100
commit99f49b56115b1f8d1a0a0b911da62ffd1f997b5f (patch)
treee0ded431b6ed91031790ccc0793abd27ac1eafb9 /bin
parenteaeddaf96efb8079b307652eac208f4ab5019ad4 (diff)
downloadbitbake-99f49b56115b1f8d1a0a0b911da62ffd1f997b5f.tar.gz
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. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-diffsigs6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/bitbake-diffsigs b/bin/bitbake-diffsigs
index 1e3de092a..b2ebe91db 100755
--- a/bin/bitbake-diffsigs
+++ b/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)