mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 15:29:40 +01:00
classes/sstate: don't use unsigned sstate when verification enabled
When signature verification of shared state objects is enabled (SSTATE_VERIFY_SIG) use of an unsigned object, even though it produces a warning, seems unexpected. Instead skip unsigned objects and force the non-accelerated task to be run. (From OE-Core rev: 571235978d98552e3734bf382454dd51272db782) Signed-off-by: Joshua Lock <jlock@vmware.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c985a07e6a
commit
f3e2c14850
@@ -340,7 +340,8 @@ def sstate_installpkg(ss, d):
|
||||
if bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False):
|
||||
signer = get_signer(d, 'local')
|
||||
if not signer.verify(sstatepkg + '.sig'):
|
||||
bb.warn("Cannot verify signature on sstate package %s" % sstatepkg)
|
||||
bb.warn("Cannot verify signature on sstate package %s, skipping acceleration..." % sstatepkg)
|
||||
return False
|
||||
|
||||
# Empty sstateinst directory, ensure its clean
|
||||
if os.path.exists(sstateinst):
|
||||
|
||||
Reference in New Issue
Block a user