mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
sstate: only fetch remote signatures if verification is enabled
Only fetch remote signatures if verification has been enabled, as otherwise the fetcher throws errors that sstate.bbclass can't ignore. [ YOCTO #8265 ] (From OE-Core rev: aa8ba5c4af2636dbc2d0c1ad9c230e8aa26d9962) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f7056fafd2
commit
48a144b4a4
@@ -615,9 +615,12 @@ def pstaging_fetch(sstatefetch, sstatepkg, d):
|
||||
|
||||
# Try a fetch from the sstate mirror, if it fails just return and
|
||||
# we will build the package
|
||||
for srcuri in ['file://{0}'.format(sstatefetch),
|
||||
'file://{0}.siginfo'.format(sstatefetch),
|
||||
'file://{0}.sig'.format(sstatefetch)]:
|
||||
uris = ['file://{0}'.format(sstatefetch),
|
||||
'file://{0}.siginfo'.format(sstatefetch)]
|
||||
if bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG", True), False):
|
||||
uris += ['file://{0}.sig'.format(sstatefetch)]
|
||||
|
||||
for srcuri in uris:
|
||||
localdata.setVar('SRC_URI', srcuri)
|
||||
try:
|
||||
fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)
|
||||
|
||||
Reference in New Issue
Block a user