summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2017-08-29 22:36:25 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2021-09-09 10:27:32 +0200
commit354bf6730bcc558723406aa49d69b3354e04e8d1 (patch)
tree440486299d5ec3bc1030ef5035539daaf8dc0199 /meta/classes
parentec26d292087d7fb8ae532fab97ce8cbbb2862976 (diff)
downloadopenembedded-core-contrib-354bf6730bcc558723406aa49d69b3354e04e8d1.tar.gz
sstate.bbclass: Do not cause build failures due to setscene errors
If a setscene task fails, the real task will be run instead. However, in case the failed setscene task happened to log any errors, this will still cause bitbake to return with an error code, even though everything actually built ok. To avoid this, modify setscene to only warn about errors. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sstate.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d08d950e768..3bbd62fab03 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -741,7 +741,7 @@ def pstaging_fetch(sstatefetch, d):
try:
fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)
fetcher.checkstatus()
- fetcher.download()
+ fetcher.download(only_warn=True)
except bb.fetch2.BBFetchException:
pass
@@ -750,7 +750,8 @@ def sstate_setscene(d):
shared_state = sstate_state_fromvars(d)
accelerate = sstate_installpkg(shared_state, d)
if not accelerate:
- bb.fatal("No suitable staging package found")
+ bb.warn("No suitable staging package found")
+ sys.exit(1)
python sstate_task_prefunc () {
shared_state = sstate_state_fromvars(d)