[OE-core] [PATCH] sstate: only fetch remote signatures if verification is enabled
Ross Burton
ross.burton at intel.com
Wed Sep 9 12:44:35 UTC 2015
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 at intel.com>
---
meta/classes/sstate.bbclass | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 77313bc..50729bf 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)
--
2.3.2 (Apple Git-55)
More information about the Openembedded-core
mailing list