From: Peter Kjellerstedt Date: Tue, 29 Aug 2017 20:36:25 +0000 (+0200) Subject: sstate.bbclass: Do not cause build failures due to setscene errors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3b83e366a5791c983624e0f82745336b82a98eb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Martin Jansa --- diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index c0329cd5d18..6603c6e9267 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -703,7 +703,7 @@ def pstaging_fetch(sstatefetch, d): localdata.setVar('SRC_URI', srcuri) try: fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False) - fetcher.download() + fetcher.download(only_warn=True) except bb.fetch2.BBFetchException: break @@ -712,7 +712,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)