diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-04-07 09:52:03 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-10 23:00:32 +0100 |
commit | 8f6094135bc533013491168a39e1fc0106103ff8 (patch) | |
tree | 43bdc56e93961810253d14f316c907f2e65a7073 /bitbake | |
parent | f3b010b39aec70936544b68eed0fbeb462c7890b (diff) | |
download | poky-8f6094135bc533013491168a39e1fc0106103ff8.tar.gz |
bitbake: bitbake-diffsigs: properly report which signature is missing
If just one of the two signatures we want to compare aren't available,
report that one rather than misleadingly claiming both are missing.
(Bitbake rev: c87764b9147792a10efad3ed5378f36f0a055bc6)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake-diffsigs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs index b2ebe91dbf..f84188d57f 100755 --- a/bitbake/bin/bitbake-diffsigs +++ b/bitbake/bin/bitbake-diffsigs | |||
@@ -75,11 +75,15 @@ def find_compare_task(bbhandler, pn, taskname): | |||
75 | hashfiles = bb.siggen.find_siginfo(key, None, hashes, bbhandler.config_data) | 75 | hashfiles = bb.siggen.find_siginfo(key, None, hashes, bbhandler.config_data) |
76 | 76 | ||
77 | recout = [] | 77 | recout = [] |
78 | if len(hashfiles) == 2: | 78 | if len(hashfiles) == 0: |
79 | recout.append("Unable to find matching sigdata for %s with hashes %s or %s" % (key, hash1, hash2)) | ||
80 | elif not hash1 in hashfiles: | ||
81 | recout.append("Unable to find matching sigdata for %s with hash %s" % (key, hash1)) | ||
82 | elif not hash2 in hashfiles: | ||
83 | recout.append("Unable to find matching sigdata for %s with hash %s" % (key, hash2)) | ||
84 | else: | ||
79 | out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb) | 85 | out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb) |
80 | recout.extend(list(' ' + l for l in out2)) | 86 | recout.extend(list(' ' + l for l in out2)) |
81 | else: | ||
82 | recout.append("Unable to find matching sigdata for %s with hashes %s or %s" % (key, hash1, hash2)) | ||
83 | 87 | ||
84 | return recout | 88 | return recout |
85 | 89 | ||