]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: toaster: do not fail on optional 'custom.xml' file
authorDavid Reyna <David.Reyna@windriver.com>
Fri, 16 Feb 2018 04:26:01 +0000 (20:26 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Mar 2018 11:52:34 +0000 (12:52 +0100)
Explicitly capture and ignore errors when trying to load the optional
'custom.xml' fixture file.

[YOCTO #12554]

(Bitbake rev: 132458939d3987ebc58685397714af3d6d5cd8fd)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py

index 582114ac974a24ebf07979d1d638d7c1bc7be0eb..823c6f154ade3c76a334e027edc3ad11612a58de 100644 (file)
@@ -107,7 +107,10 @@ class Command(BaseCommand):
                                 action="ignore",
                                 message="^.*No fixture named.*$")
                             print("Importing custom settings if present")
-                            call_command("loaddata", "custom")
+                            try:
+                                call_command("loaddata", "custom")
+                            except:
+                                print("NOTE: optional fixture 'custom' not found")
 
                         # we run lsupdates after config update
                         print("\nFetching information from the layer index, "