diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-22 17:37:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-06 11:24:26 +0100 |
commit | 00f40114b4fe5f47663f60c4f114af90d61c424c (patch) | |
tree | abccee0bd5cbce103cfc5a47598e09c90776b1a3 /meta/lib/oe | |
parent | 62c8b8c4d96836ba8e23b512318df67b2d055d15 (diff) | |
download | poky-00f40114b4fe5f47663f60c4f114af90d61c424c.tar.gz |
sstatesig: Add debug for incorrect hash server settings
If the hash server settings are incorrect, show the user useful
error messages instead of tracebacks.
(From OE-Core rev: 2df5d95b9b63e30ddaa7c72a4173b9a05b3f15f9)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/sstatesig.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index 35d48f328d..eff5adfc60 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py | |||
@@ -272,7 +272,11 @@ class SignatureGeneratorOEEquivHash(bb.siggen.SignatureGeneratorUniHashMixIn, Si | |||
272 | def init_rundepcheck(self, data): | 272 | def init_rundepcheck(self, data): |
273 | super().init_rundepcheck(data) | 273 | super().init_rundepcheck(data) |
274 | self.server = data.getVar('SSTATE_HASHEQUIV_SERVER') | 274 | self.server = data.getVar('SSTATE_HASHEQUIV_SERVER') |
275 | if not self.server: | ||
276 | bb.fatal("OEEquivHash requires SSTATE_HASHEQUIV_SERVER to be set") | ||
275 | self.method = data.getVar('SSTATE_HASHEQUIV_METHOD') | 277 | self.method = data.getVar('SSTATE_HASHEQUIV_METHOD') |
278 | if not self.method: | ||
279 | bb.fatal("OEEquivHash requires SSTATE_HASHEQUIV_METHOD to be set") | ||
276 | self.unihashes = bb.persist_data.persist('SSTATESIG_UNIHASH_CACHE_v1_' + self.method.replace('.', '_'), data) | 280 | self.unihashes = bb.persist_data.persist('SSTATESIG_UNIHASH_CACHE_v1_' + self.method.replace('.', '_'), data) |
277 | 281 | ||
278 | 282 | ||