summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index aa9c30b4e1..375196ef21 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -355,6 +355,9 @@ def sstate_installpkg(ss, d):
355 d.setVar('SSTATE_INSTDIR', sstateinst) 355 d.setVar('SSTATE_INSTDIR', sstateinst)
356 356
357 if bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False): 357 if bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False):
358 if not os.path.isfile(sstatepkg + '.sig'):
359 bb.warn("No signature file for sstate package %s, skipping acceleration..." % sstatepkg)
360 return False
358 signer = get_signer(d, 'local') 361 signer = get_signer(d, 'local')
359 if not signer.verify(sstatepkg + '.sig'): 362 if not signer.verify(sstatepkg + '.sig'):
360 bb.warn("Cannot verify signature on sstate package %s, skipping acceleration..." % sstatepkg) 363 bb.warn("Cannot verify signature on sstate package %s, skipping acceleration..." % sstatepkg)
@@ -733,10 +736,11 @@ def pstaging_fetch(sstatefetch, d):
733 localdata.setVar('SRC_URI', srcuri) 736 localdata.setVar('SRC_URI', srcuri)
734 try: 737 try:
735 fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False) 738 fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)
739 fetcher.checkstatus()
736 fetcher.download() 740 fetcher.download()
737 741
738 except bb.fetch2.BBFetchException: 742 except bb.fetch2.BBFetchException:
739 break 743 pass
740 744
741def sstate_setscene(d): 745def sstate_setscene(d):
742 shared_state = sstate_state_fromvars(d) 746 shared_state = sstate_state_fromvars(d)