# 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)