diff options
-rw-r--r-- | meta/classes-global/sstate.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes-global/sstate.bbclass b/meta/classes-global/sstate.bbclass index 77e3ea34e1..567de4aba4 100644 --- a/meta/classes-global/sstate.bbclass +++ b/meta/classes-global/sstate.bbclass | |||
@@ -365,8 +365,9 @@ def sstate_installpkg(ss, d): | |||
365 | d.setVar("SSTATE_CURRTASK", ss['task']) | 365 | d.setVar("SSTATE_CURRTASK", ss['task']) |
366 | sstatefetch = d.getVar('SSTATE_PKGNAME') | 366 | sstatefetch = d.getVar('SSTATE_PKGNAME') |
367 | sstatepkg = d.getVar('SSTATE_PKG') | 367 | sstatepkg = d.getVar('SSTATE_PKG') |
368 | verify_sig = bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False) | ||
368 | 369 | ||
369 | if not os.path.exists(sstatepkg): | 370 | if not os.path.exists(sstatepkg) or (verify_sig and not os.path.exists(sstatepkg + '.sig')): |
370 | pstaging_fetch(sstatefetch, d) | 371 | pstaging_fetch(sstatefetch, d) |
371 | 372 | ||
372 | if not os.path.isfile(sstatepkg): | 373 | if not os.path.isfile(sstatepkg): |
@@ -377,7 +378,7 @@ def sstate_installpkg(ss, d): | |||
377 | 378 | ||
378 | d.setVar('SSTATE_INSTDIR', sstateinst) | 379 | d.setVar('SSTATE_INSTDIR', sstateinst) |
379 | 380 | ||
380 | if bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False): | 381 | if verify_sig: |
381 | if not os.path.isfile(sstatepkg + '.sig'): | 382 | if not os.path.isfile(sstatepkg + '.sig'): |
382 | bb.warn("No signature file for sstate package %s, skipping acceleration..." % sstatepkg) | 383 | bb.warn("No signature file for sstate package %s, skipping acceleration..." % sstatepkg) |
383 | return False | 384 | return False |