diff options
author | Ross Burton <ross.burton@intel.com> | 2015-09-09 13:35:05 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-12 22:47:11 +0100 |
commit | aa8ba5c4af2636dbc2d0c1ad9c230e8aa26d9962 (patch) | |
tree | f9966841270aa4c087feb8710f6267a8fb3a226b | |
parent | 8478024bd25651aa866d4582dcc193d51553554a (diff) | |
download | openembedded-core-aa8ba5c4af2636dbc2d0c1ad9c230e8aa26d9962.tar.gz openembedded-core-aa8ba5c4af2636dbc2d0c1ad9c230e8aa26d9962.tar.bz2 openembedded-core-aa8ba5c4af2636dbc2d0c1ad9c230e8aa26d9962.zip |
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 ]
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/classes/sstate.bbclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 77313bcfbc..50729bf750 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -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) |