diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-09-10 02:12:39 -0700 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2015-09-10 02:46:11 -0700 |
commit | aea6c94983ec5f8a52aeb9696ead8637286c681d (patch) | |
tree | 117ece6b76b20e32afa745b6d9dba0abf1cffb6d /meta/classes | |
parent | 56c5fa106eeccda2ca92dbeb73ff01ba40992e7d (diff) | |
download | openembedded-core-contrib-aea6c94983ec5f8a52aeb9696ead8637286c681d.tar.gz |
sstate.bbclass: fixes for SSTATE_SIG_KEY when use SSTATE_MIRRORSrbt/ss
Fixed:
WARNING: Failed to fetch URL file://Ubuntu-12.04/39/sstate:m4-native:x86_64-linux:1.4.17:r0:x86_64:3:39ecb836d5fc7802ce6f45f33f1cae36_populate_sysroot.tgz.sig, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://Ubuntu-12.04/39/sstate:m4-native:x86_64-linux:1.4.17:r0:x86_64:3:39ecb836d5fc7802ce6f45f33f1cae36_populate_sysroot.tgz.sig anywhere. The paths that were searched were:
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sstate.bbclass | 7 |
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) |