]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/sstatesig: avoid reporting duplicate siginfo files from sstate
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 6 Apr 2017 22:01:44 +0000 (10:01 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Apr 2017 21:48:06 +0000 (22:48 +0100)
commit5b69eef40868180c59400624096d7ebbbbea446b
treecffc644d28fe44edfebf082dd0635757928f1cd4
parent8cb472e4ed25e56ec0d9cf6d8d101d1ab6687a5b
lib/oe/sstatesig: avoid reporting duplicate siginfo files from sstate

In find_siginfo(), which is used by bitbake-diffsigs among other things,
avoid adding a siginfo file from the sstate-cache where we've already
collected a sigdata file from the stamps directory with the same hash.
This avoids the possibility that the top two files (as picked by default
using the bitbake-diffsigs -t option) are for the same signature and
thus the tool would report no differences. In order to do that, just use
the hashfiles dict that we already have - we just need to change the
code to populate that even if we're collecting matching files without
looking for a fixed set of hashes (i.e. taskhashlist isn't set).

This replaces previous code in bitbake-diffsigs that attempted to filter
these out with limited success.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sstatesig.py