aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 77313bcfbc..7e682fe464 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -615,9 +615,10 @@ 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)]:
+ srcuris = ['file://{0}'.format(sstatefetch), 'file://{0}.siginfo'.format(sstatefetch)]
+ if d.getVar("SSTATE_SIG_KEY", True):
+ srcuris.append('file://{0}.sig'.format(sstatefetch))
+ for srcuri in srcuris:
localdata.setVar('SRC_URI', srcuri)
try:
fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)