[bitbake-devel] [PATCH 01/11] bitbake-diffsigs: fix -t picking wrong files to compare
Paul Eggleton
paul.eggleton at linux.intel.com
Thu Apr 6 21:52:01 UTC 2017
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 at linux.intel.com>
---
bin/bitbake-diffsigs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/bitbake-diffsigs b/bin/bitbake-diffsigs
index 1e3de09..b2ebe91 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)
--
2.9.3
More information about the bitbake-devel
mailing list